diff options
Diffstat (limited to 'dist/js')
-rwxr-xr-x | dist/js/app.js | 2 | ||||
-rw-r--r-- | dist/js/lang/bundle.js | 2 | ||||
-rw-r--r-- | dist/js/login.js | 6 |
3 files changed, 8 insertions, 2 deletions
diff --git a/dist/js/app.js b/dist/js/app.js index a2a7d52..6ab1e02 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 = "1ad50c13b9d4e52f9b83763b2df3f93e8287d20b"; +const previous_commit = "6989c8d5adeed595797c3691eeffa670dfeaf0ce"; if ("serviceWorker" in navigator) { navigator.serviceWorker.register("/sw.js") diff --git a/dist/js/lang/bundle.js b/dist/js/lang/bundle.js index 6a0fd2c..a43638a 100644 --- a/dist/js/lang/bundle.js +++ b/dist/js/lang/bundle.js @@ -143,6 +143,7 @@ var langstrings = { and: "and", thePrivacyPolicy: "the privacy policy", loginFailed: "login failed", + browserNotSupported: "bežiapp won't work on your device, unless you update your Internet browser", // index timetable: "timetable", gradings: "gradings", @@ -333,6 +334,7 @@ var langstrings = { and: "in", thePrivacyPolicy: "politika zasebnosti (v angleščini)", loginFailed: "prijava je spodletela", + browserNotSupported: "BežiApp ne bo deloval na vaši napravi, če ne posodobite vašega Internetnega brskalnika", // timetable noPeriods: "ni ur v izbranem tednu", // index diff --git a/dist/js/login.js b/dist/js/login.js index 4633306..ca663c2 100644 --- a/dist/js/login.js +++ b/dist/js/login.js @@ -23,7 +23,11 @@ function setupEventListeners() { function login() { let username = $("#username").val(); let password = $("#password").val(); - var gsecInstance = new gsec(); + try { + var gsecInstance = new gsec(); + } catch (error) { + alert(D("browserNotSupported")); + } gsecInstance.login(username, password).then( (value) => { if (typeof value == "string") { let promises_to_run = [ |