mirror of
https://github.com/micropython/micropython.git
synced 2026-01-10 22:17:18 +01:00
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>