From a901be064c0baf208148d0dd1ac5530285d9968b Mon Sep 17 00:00:00 2001 From: sijanec Date: Wed, 20 May 2020 15:48:10 +0200 Subject: this is also not a fix --- assets/js/login.js | 7 ++++++- dist/js/app.js | 2 +- dist/js/login.js | 7 ++++++- dist/pages/about.html | 2 +- dist/sw.js | 4 ++-- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/assets/js/login.js b/assets/js/login.js index ca663c2..3094b5e 100644 --- a/assets/js/login.js +++ b/assets/js/login.js @@ -26,7 +26,12 @@ function login() { try { var gsecInstance = new gsec(); } catch (error) { - alert(D("browserNotSupported")); + $.getScript("/js/gsec.js"); + try { + var gsecInstance = new gsec(); + } catch (error) { + alert(D("browserNotSupported")); + } } gsecInstance.login(username, password).then( (value) => { if (typeof value == "string") { diff --git a/dist/js/app.js b/dist/js/app.js index 6ab1e02..b0ab5bb 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 = "6989c8d5adeed595797c3691eeffa670dfeaf0ce"; +const previous_commit = "0bbebb72ee64d7b33cd8da60c797b4fe1c7b9d60"; if ("serviceWorker" in navigator) { navigator.serviceWorker.register("/sw.js") diff --git a/dist/js/login.js b/dist/js/login.js index ca663c2..3094b5e 100644 --- a/dist/js/login.js +++ b/dist/js/login.js @@ -26,7 +26,12 @@ function login() { try { var gsecInstance = new gsec(); } catch (error) { - alert(D("browserNotSupported")); + $.getScript("/js/gsec.js"); + try { + var gsecInstance = new gsec(); + } catch (error) { + alert(D("browserNotSupported")); + } } gsecInstance.login(username, password).then( (value) => { if (typeof value == "string") { diff --git a/dist/pages/about.html b/dist/pages/about.html index bf616d8..752e511 100755 --- a/dist/pages/about.html +++ b/dist/pages/about.html @@ -142,7 +142,7 @@

- ^HEAD 6989c8d5adeed595797c3691eeffa670dfeaf0ce + ^HEAD 0bbebb72ee64d7b33cd8da60c797b4fe1c7b9d60

diff --git a/dist/sw.js b/dist/sw.js index 287af4e..40a684c 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-6989c8d"; -// latest commit is 6989c8d5adeed595797c3691eeffa670dfeaf0ce +const static_cache_name = "site-static-1.0.13-beta-0bbebb7"; +// latest commit is 0bbebb72ee64d7b33cd8da60c797b4fe1c7b9d60 // Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js // sw.js NE SME BITI CACHAN, ker vsebuje verzijo! -- cgit v1.2.3