summaryrefslogtreecommitdiffstats
path: root/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/app.js b/js/app.js
index cc206f9..267868a 100644
--- a/js/app.js
+++ b/js/app.js
@@ -15,3 +15,12 @@ if (navigator.serviceWorker) {
if (location.protocol != 'https:') {
location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
}
+function UIAlert(usermsg, devmsg) {
+ if(true) { // če bo kakšen dev switch?
+ M.toast( { html: usermsg } );
+ console.log("[BežiApp UIAlert] "+usermsg+" "+devmsg);
+ } else {
+ M.toast( { html: usermsg+" "+devmsg } );
+ }
+}
+