From 0cc04b6bf1471d3c4777d4222c0fa645fa98c19a Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 13 Feb 2019 13:47:53 +0100 Subject: [PATCH] Error Handling Improved when AAWeb is not running. --- client/html/index.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/html/index.html b/client/html/index.html index 4734e70b0..407908765 100644 --- a/client/html/index.html +++ b/client/html/index.html @@ -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); + } } }