From bcef91bb592a40f2256bfc8e9a47c03c968801bc Mon Sep 17 00:00:00 2001 From: Yaya-Cout Date: Sun, 14 Dec 2025 12:34:23 +0100 Subject: [PATCH] [simulator/web] Better window definition check --- python/port/port.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/port/port.cpp b/python/port/port.cpp index dc89cb163..dbe70715d 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 (window) { + if (typeof variable !== 'undefined') { window.postMessage({ type: 'epsilon_micropython_executionEnvironment_runCode_finished', value: Module.___temp_storage_dump,