diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-05-20 14:54:19 +0200 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-05-20 14:54:19 +0200 |
commit | 906d15b45f66f1615167775985e4ca1abb8f4e50 (patch) | |
tree | d4671dbc37e6adf37ade76bd0c9c944bc8eddc4a /dist/js/app.js | |
parent | DNM, not tested #3 (diff) | |
download | beziapp-906d15b45f66f1615167775985e4ca1abb8f4e50.tar beziapp-906d15b45f66f1615167775985e4ca1abb8f4e50.tar.gz beziapp-906d15b45f66f1615167775985e4ca1abb8f4e50.tar.bz2 beziapp-906d15b45f66f1615167775985e4ca1abb8f4e50.tar.lz beziapp-906d15b45f66f1615167775985e4ca1abb8f4e50.tar.xz beziapp-906d15b45f66f1615167775985e4ca1abb8f4e50.tar.zst beziapp-906d15b45f66f1615167775985e4ca1abb8f4e50.zip |
Diffstat (limited to 'dist/js/app.js')
-rwxr-xr-x | dist/js/app.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dist/js/app.js b/dist/js/app.js index b62cd65..6e84e4a 100755 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -3,7 +3,7 @@ const app_version = "1.0.13-beta"; -const previous_commit = "5fc29dc18a5b27dd8dbf45f8dd67e42ee74419fb"; +const previous_commit = "c2bbdeb81de79f182847348da988f8cc6ca63e04"; if ("serviceWorker" in navigator) { navigator.serviceWorker.register("/sw.js") @@ -56,7 +56,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}; @@ -64,3 +64,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; |