Browse Source
When the "typeof window" check is run within a web worker the window is undefined, causing an error because "require" is only defined in a Node environment. Change the logic to reflect the true intentions of when this code should run, ie in Node only. Signed-off-by: Damien George <damien@micropython.org>pull/11557/head
Nicholas H.Tollervey
1 year ago
committed by
Damien George
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue