diff --git a/python/port/port.cpp b/python/port/port.cpp index dbe70715d..99d753c2d 100644 --- a/python/port/port.cpp +++ b/python/port/port.cpp @@ -68,7 +68,7 @@ void python_execution_end() { // window isn't defined on Node (CI) EM_ASM({ - if (typeof variable !== 'undefined') { + if (typeof window !== 'undefined') { window.postMessage({ type: 'epsilon_micropython_executionEnvironment_runCode_finished', value: Module.___temp_storage_dump,