summaryrefslogtreecommitdiffstats
path: root/js/app.js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-14 02:39:45 +0200
committerrstular <rok@stular.eu>2020-05-14 02:39:45 +0200
commitc3b6d083be07da2831bff06496137200547fc947 (patch)
tree576605f06170b146b5652496cc41dc6b0c051020 /js/app.js
parentMinor styling fix (diff)
downloadbeziapp-c3b6d083be07da2831bff06496137200547fc947.tar
beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.gz
beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.bz2
beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.lz
beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.xz
beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.zst
beziapp-c3b6d083be07da2831bff06496137200547fc947.zip
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/js/app.js b/js/app.js
index 022b946..20cfae4 100644
--- a/js/app.js
+++ b/js/app.js
@@ -13,21 +13,17 @@ if (navigator.serviceWorker) {
});
}
-if (location.protocol != 'https:') {
- location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
-}
-
async function UIAlert(usermsg, devmsg) {
if(true) { // če bo kakšen dev switch?
M.toast( { html: usermsg } );
- console.log("[BežiApp UIAlert] "+usermsg+" "+devmsg);
+ console.log(`[BežiApp UIAlert] ${usermsg} ${devmsg}`);
} else {
- M.toast( { html: usermsg+" "+devmsg } );
+ M.toast( { html: `${usermsg} ${devmsg}` } );
}
}
function gsecErrorHandlerUI(err) {
- console.log("gsecErrorHanderUI: handling "+err);
+ console.log(`gsecErrorHanderUI: handling ${err}`);
if(err == GSEC_ERR_NET || err == GSEC_ERR_NET_POSTBACK_GET || err == GSEC_ERR_NET_POSTBACK_POST) {
UIAlert( D("gsecErrNet") );
} else if(err == GSEC_ERR_LOGIN) {