summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-05-20 22:44:41 +0200
committersijanec <sijanecantonluka@gmail.com>2020-05-20 22:44:41 +0200
commit1652387e87215d6d4d6b677d982865eb27b44ba3 (patch)
tree5e4edfb6c8ef95cfe42b891deee4f40e06934403 /assets/js
parentforgot about assetlinks.json! (diff)
downloadbeziapp-1652387e87215d6d4d6b677d982865eb27b44ba3.tar
beziapp-1652387e87215d6d4d6b677d982865eb27b44ba3.tar.gz
beziapp-1652387e87215d6d4d6b677d982865eb27b44ba3.tar.bz2
beziapp-1652387e87215d6d4d6b677d982865eb27b44ba3.tar.lz
beziapp-1652387e87215d6d4d6b677d982865eb27b44ba3.tar.xz
beziapp-1652387e87215d6d4d6b677d982865eb27b44ba3.tar.zst
beziapp-1652387e87215d6d4d6b677d982865eb27b44ba3.zip
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/app.js.bvr6
1 files changed, 5 insertions, 1 deletions
diff --git a/assets/js/app.js.bvr b/assets/js/app.js.bvr
index a75505e..8e150a2 100644
--- a/assets/js/app.js.bvr
+++ b/assets/js/app.js.bvr
@@ -62,7 +62,11 @@ var error_report_function = async function (msg, url, lineNo, columnNo, error) {
if(selectedE == "on") {
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.client = {"ua": navigator.userAgent, "app_version": app_version, "previous_commit": previous_commit, "username": };
+
+ // Load required data
+ data.client.username = await localforage.getItem("username");
+
data.type = "error";
$.post("https://beziapp-report.gimb.tk/", data);
} else {