summaryrefslogtreecommitdiffstats
path: root/dist/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/js/app.js')
-rw-r--r--dist/js/app.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/dist/js/app.js b/dist/js/app.js
index b2623b9..cabb077 100644
--- a/dist/js/app.js
+++ b/dist/js/app.js
@@ -1,3 +1,10 @@
+
+
+
+
+const app_version = "1.0.13-beta";
+const previous_commit = "01f9eef0a5b397c12f3eee9c801167f851d77251";
+
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/sw.js")
.then(() => { })
@@ -50,7 +57,10 @@ function gsecErrorHandlerUI(err) {
window.onerror = function (msg, url, lineNo, columnNo, error) {
- // ... handle error ...
- console.log("error!");
- return false;
+ 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};
+ data.type = "error";
+ $.post("https://beziapp-report.gimb.tk/", data);
+ return false;
}