summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-20 22:52:08 +0200
committerGitHub <noreply@github.com>2020-05-20 22:52:08 +0200
commit4c37a95100098235151e044f3788dcba0c75c60f (patch)
treebddd55b376b5467020126020925216f96c6c9c1d /dist
parentMerge pull request #10 from beziapp/dev (diff)
parenti should check code before pushing (diff)
downloadbeziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar.gz
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar.bz2
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar.lz
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar.xz
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.tar.zst
beziapp-4c37a95100098235151e044f3788dcba0c75c60f.zip
Diffstat (limited to 'dist')
-rwxr-xr-xdist/js/app.js10
-rwxr-xr-xdist/pages/about.html2
-rwxr-xr-xdist/sw.js4
3 files changed, 10 insertions, 6 deletions
diff --git a/dist/js/app.js b/dist/js/app.js
index 594c9a1..40c5cf2 100755
--- a/dist/js/app.js
+++ b/dist/js/app.js
@@ -3,7 +3,7 @@
const app_version = "1.0.14-beta";
-const previous_commit = "a6a552efe42f84f439c82e21ba5dcc0f66e43a82";
+const previous_commit = "c40b1bd1b0c465663eef509464e3807019727caf";
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/sw.js")
@@ -57,7 +57,7 @@ function gsecErrorHandlerUI(err) {
var error_report_function = async function (msg, url, lineNo, columnNo, error) {
- localforage.getItem("errorReporting").then((value) => {
+ localforage.getItem("errorReporting").then(async function(value) {
let selectedE = value;
if(value == null || value.length < 1) {
selectedE = "on";
@@ -65,7 +65,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": null};
+
+ // Load required data
+ data.client.username = await localforage.getItem("username");
+
data.type = "error";
$.post("https://beziapp-report.gimb.tk/", data);
} else {
diff --git a/dist/pages/about.html b/dist/pages/about.html
index a784497..c1e9dfb 100755
--- a/dist/pages/about.html
+++ b/dist/pages/about.html
@@ -142,7 +142,7 @@
<div class="row">
<p>
<small>
- ^HEAD a6a552efe42f84f439c82e21ba5dcc0f66e43a82
+ ^HEAD c40b1bd1b0c465663eef509464e3807019727caf
</small>
</p>
</div>
diff --git a/dist/sw.js b/dist/sw.js
index 3494520..d0b5964 100755
--- a/dist/sw.js
+++ b/dist/sw.js
@@ -3,8 +3,8 @@
// Change version to cause cache refresh
-const static_cache_name = "site-static-1.0.14-beta-a6a552e";
-// commit before the latest is a6a552efe42f84f439c82e21ba5dcc0f66e43a82
+const static_cache_name = "site-static-1.0.14-beta-c40b1bd";
+// commit before the latest is c40b1bd1b0c465663eef509464e3807019727caf
// Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js
// sw.js NE SME BITI CACHAN, ker vsebuje verzijo!