Error Handling Improved when AAWeb is not running.

This commit is contained in:
Luis Fernando Molina committed 2019-02-13 13:47:53 +01:00
1 parent 6d34ec6711
commit 0cc04b6bf1
1 file changed
+7 -3
+7 -3
View File
@@ -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);
}
}
}