summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdist/js/app.js2
-rw-r--r--dist/js/lang/bundle.js2
-rw-r--r--dist/js/login.js6
-rwxr-xr-xdist/pages/about.html2
-rwxr-xr-xdist/sw.js4
5 files changed, 11 insertions, 5 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 = [
diff --git a/dist/pages/about.html b/dist/pages/about.html
index af7c4f8..bf616d8 100755
--- a/dist/pages/about.html
+++ b/dist/pages/about.html
@@ -142,7 +142,7 @@
<div class="row">
<p>
<small>
- ^HEAD 1ad50c13b9d4e52f9b83763b2df3f93e8287d20b
+ ^HEAD 6989c8d5adeed595797c3691eeffa670dfeaf0ce
</small>
</p>
</div>
diff --git a/dist/sw.js b/dist/sw.js
index f012796..287af4e 100755
--- a/dist/sw.js
+++ b/dist/sw.js
@@ -3,8 +3,8 @@
// Change version to cause cache refresh
-const static_cache_name = "site-static-1.0.13-beta-1ad50c1";
-// latest commit is 1ad50c13b9d4e52f9b83763b2df3f93e8287d20b
+const static_cache_name = "site-static-1.0.13-beta-6989c8d";
+// latest commit is 6989c8d5adeed595797c3691eeffa670dfeaf0ce
// Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js
// sw.js NE SME BITI CACHAN, ker vsebuje verzijo!