summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--assets/js/lang/bundle.js2
-rw-r--r--assets/js/login.js6
2 files changed, 7 insertions, 1 deletions
diff --git a/assets/js/lang/bundle.js b/assets/js/lang/bundle.js
index 6a0fd2c..a43638a 100644
--- a/assets/js/lang/bundle.js
+++ b/assets/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/assets/js/login.js b/assets/js/login.js
index 4633306..ca663c2 100644
--- a/assets/js/login.js
+++ b/assets/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 = [