mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[simulator/web] Fix window definition check
This commit is contained in:
@@ -68,7 +68,7 @@ void python_execution_end() {
|
|||||||
|
|
||||||
// window isn't defined on Node (CI)
|
// window isn't defined on Node (CI)
|
||||||
EM_ASM({
|
EM_ASM({
|
||||||
if (typeof variable !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
window.postMessage({
|
window.postMessage({
|
||||||
type: 'epsilon_micropython_executionEnvironment_runCode_finished',
|
type: 'epsilon_micropython_executionEnvironment_runCode_finished',
|
||||||
value: Module.___temp_storage_dump,
|
value: Module.___temp_storage_dump,
|
||||||
|
|||||||
Reference in New Issue
Block a user