summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-05-20 15:42:58 +0200
committersijanec <sijanecantonluka@gmail.com>2020-05-20 15:42:58 +0200
commit0bbebb72ee64d7b33cd8da60c797b4fe1c7b9d60 (patch)
tree646c32d6eb4a57f4808c0ab2489fda1017e4f00d /assets/js
parentmade error reporting async (diff)
downloadbeziapp-0bbebb72ee64d7b33cd8da60c797b4fe1c7b9d60.tar
beziapp-0bbebb72ee64d7b33cd8da60c797b4fe1c7b9d60.tar.gz
beziapp-0bbebb72ee64d7b33cd8da60c797b4fe1c7b9d60.tar.bz2
beziapp-0bbebb72ee64d7b33cd8da60c797b4fe1c7b9d60.tar.lz
beziapp-0bbebb72ee64d7b33cd8da60c797b4fe1c7b9d60.tar.xz
beziapp-0bbebb72ee64d7b33cd8da60c797b4fe1c7b9d60.tar.zst
beziapp-0bbebb72ee64d7b33cd8da60c797b4fe1c7b9d60.zip
Diffstat (limited to 'assets/js')
-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 = [