summaryrefslogtreecommitdiff
path: root/js/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-14 09:39:44 +0300
committerAndrew Dolgov <[email protected]>2019-12-14 09:39:44 +0300
commit0d6add5d7f9475d60330f233a6b62f9bb81d01c0 (patch)
treeb8821e566da153a6c17eaf2c9437b7513a2f0173 /js/prefs.js
parente146a1ab3717ae8132fed886d7383b19b3d04e23 (diff)
show alert() if fatal exception happens while initializing base app objects and app.error is not available
Diffstat (limited to 'js/prefs.js')
-rwxr-xr-xjs/prefs.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/prefs.js b/js/prefs.js
index 1b32c65cb..747eb4105 100755
--- a/js/prefs.js
+++ b/js/prefs.js
@@ -155,7 +155,10 @@ require(["dojo/_base/kernel",
App = new _App();
} catch (e) {
- this.Error.report(e);
+ if (App && App.Error)
+ App.Error.report(e);
+ else
+ alert(e + "\n\n" + e.stack);
}
});
});