From 1f9f384933ac7afa5bca8a2a465f6f1ae6f02edd Mon Sep 17 00:00:00 2001 From: sijanec Date: Thu, 25 Mar 2021 18:09:50 +0100 Subject: added not supported text --- assets/js/initialize.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'assets/js/initialize.js') diff --git a/assets/js/initialize.js b/assets/js/initialize.js index cb5d210..219bc57 100644 --- a/assets/js/initialize.js +++ b/assets/js/initialize.js @@ -4,7 +4,11 @@ function getUrlParameter(sParam) { return found_param === null ? "" : found_param; } - +try { + localforage.getItem("logged_in").then(console.log); +} catch { + alert("Vaša naprava ne podpira BežiAppa. Your device does not support BežiApp."); +} localforage.getItem("logged_in") .then( function (value) { -- cgit v1.2.3