[simulator/web] Fix window definition check

This commit is contained in:
Yaya-Cout
2025-12-14 12:59:08 +01:00
parent bcef91bb59
commit b9b49e0c17

View File

@@ -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,