Error Handling Improved when AAWeb is not running.
This commit is contained in:
1 parent
6d34ec6711
commit
0cc04b6bf1
1 file changed
+7
-3
@@ -32,9 +32,13 @@
|
||||
context: {}
|
||||
};
|
||||
|
||||
let delay = 0
|
||||
if (window.innerHeight === 0) {delay = 3000} // Inside IFRAMES the onload event is reaised before the window has its real size.
|
||||
setTimeout(loadAdvancedAlgosPlatform, delay)
|
||||
try {
|
||||
loadAdvancedAlgosPlatform();
|
||||
}
|
||||
catch(err) {
|
||||
console.log("[ERROR] MasterApp -> Index -> CanvasApp can not be started. Please check that AAWeb is running.");
|
||||
console.log("[ERROR] MasterApp -> Index -> err = " + err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user