summaryrefslogtreecommitdiffstats
path: root/assets/js/app.js.bvr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--assets/js/app.js.bvr5
1 files changed, 4 insertions, 1 deletions
diff --git a/assets/js/app.js.bvr b/assets/js/app.js.bvr
index f601506..ce109b2 100644
--- a/assets/js/app.js.bvr
+++ b/assets/js/app.js.bvr
@@ -53,7 +53,7 @@ function gsecErrorHandlerUI(err) {
}
-window.onerror = function (msg, url, lineNo, columnNo, error) {
+var error_report_function = function (msg, url, lineNo, columnNo, error) {
var data = {};
data.error = {"msg": msg, "url": url, "line": lineNo, "column": columnNo, "obj": error};
data.client = {"ua": navigator.userAgent, "app_version": app_version, "previous_commit": previous_commit};
@@ -61,3 +61,6 @@ window.onerror = function (msg, url, lineNo, columnNo, error) {
$.post("https://beziapp-report.gimb.tk/", data);
return false;
}
+
+window.onerror = error_report_function;
+window.onunhandledrejection = error_report_function;