summaryrefslogtreecommitdiffstats
path: root/dist/js/app.js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-05-20 13:29:12 +0200
committersijanec <sijanecantonluka@gmail.com>2020-05-20 13:29:12 +0200
commitf42bec58d38bcc5458dc9ab12a46a2e8f7c990e2 (patch)
tree25eee64ec49c14a567d77eecc2eefae2e9879b10 /dist/js/app.js
parentCSS fixes (diff)
downloadbeziapp-f42bec58d38bcc5458dc9ab12a46a2e8f7c990e2.tar
beziapp-f42bec58d38bcc5458dc9ab12a46a2e8f7c990e2.tar.gz
beziapp-f42bec58d38bcc5458dc9ab12a46a2e8f7c990e2.tar.bz2
beziapp-f42bec58d38bcc5458dc9ab12a46a2e8f7c990e2.tar.lz
beziapp-f42bec58d38bcc5458dc9ab12a46a2e8f7c990e2.tar.xz
beziapp-f42bec58d38bcc5458dc9ab12a46a2e8f7c990e2.tar.zst
beziapp-f42bec58d38bcc5458dc9ab12a46a2e8f7c990e2.zip
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;
}