diff options
author | rstular <rok@stular.eu> | 2020-05-14 02:39:45 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-14 02:39:45 +0200 |
commit | c3b6d083be07da2831bff06496137200547fc947 (patch) | |
tree | 576605f06170b146b5652496cc41dc6b0c051020 /js/app.js | |
parent | Minor styling fix (diff) | |
download | beziapp-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 '')
-rw-r--r-- | js/app.js | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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) { |