summaryrefslogtreecommitdiffstats
path: root/dist
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 /dist
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 'dist')
-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!