diff options
-rw-r--r-- | assets/js/app.js.bvr | 5 | ||||
-rwxr-xr-x | dist/js/app.js | 7 | ||||
-rwxr-xr-x | dist/pages/about.html | 2 | ||||
-rwxr-xr-x | dist/sw.js | 4 |
4 files changed, 12 insertions, 6 deletions
diff --git a/assets/js/app.js.bvr b/assets/js/app.js.bvr index f601506..ce109b2 100644 --- a/assets/js/app.js.bvr +++ b/assets/js/app.js.bvr @@ -53,7 +53,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}; @@ -61,3 +61,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; 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; diff --git a/dist/pages/about.html b/dist/pages/about.html index 172ee05..67a82d3 100755 --- a/dist/pages/about.html +++ b/dist/pages/about.html @@ -142,7 +142,7 @@ <div class="row"> <p> <small> - ^HEAD 5fc29dc18a5b27dd8dbf45f8dd67e42ee74419fb + ^HEAD c2bbdeb81de79f182847348da988f8cc6ca63e04 </small> </p> </div> @@ -3,8 +3,8 @@ // Change version to cause cache refresh -const static_cache_name = "site-static-1.0.13-beta-5fc29dc"; -// latest commit is 5fc29dc18a5b27dd8dbf45f8dd67e42ee74419fb +const static_cache_name = "site-static-1.0.13-beta-c2bbdeb"; +// latest commit is c2bbdeb81de79f182847348da988f8cc6ca63e04 // Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js // sw.js NE SME BITI CACHAN, ker vsebuje verzijo! |