[simulator/web] Better window definition check

This commit is contained in:
Yaya-Cout
2025-12-14 12:34:23 +01:00
parent ff068ca797
commit bcef91bb59

View File

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