diff options
-rw-r--r-- | assets/js/login.js | 6 | ||||
-rw-r--r-- | assets/root/sw.js.bvr | 5 | ||||
-rwxr-xr-x | dist/js/app.js | 2 | ||||
-rw-r--r-- | dist/js/login.js | 6 | ||||
-rwxr-xr-x | dist/pages/about.html | 2 | ||||
-rwxr-xr-x | dist/sw.js | 9 |
6 files changed, 22 insertions, 8 deletions
diff --git a/assets/js/login.js b/assets/js/login.js index fe56c53..ab59058 100644 --- a/assets/js/login.js +++ b/assets/js/login.js @@ -27,7 +27,11 @@ function login() { try { gsecInstance = new gsec(); } catch (error) { - $.getScript("/js/gsec.js"); + $.ajax({ + url: 'js/gsec.js?ajaxload', + async: false, + dataType: "script", + }); try { gsecInstance = new gsec(); } catch (error) { diff --git a/assets/root/sw.js.bvr b/assets/root/sw.js.bvr index 8ba3c05..c3e7988 100644 --- a/assets/root/sw.js.bvr +++ b/assets/root/sw.js.bvr @@ -84,7 +84,10 @@ const assets = [ "/js/jitsi.js", "/pages/chats.html", "/js/chats.js", - "/css/bubbles.css" + "/css/bubbles.css", + + "/js/gsec.js", + "/js/gsec.js?ajaxload" ]; importScripts("/js/lib/localforage.min.js"); diff --git a/dist/js/app.js b/dist/js/app.js index bcaa127..5eb611a 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 = "0a045055fbfa8a5228f1deeca9d85a4b6a7b0fca"; +const previous_commit = "3b61e8681d5db498e76fa1c843062a0a7a403c64"; if ("serviceWorker" in navigator) { navigator.serviceWorker.register("/sw.js") diff --git a/dist/js/login.js b/dist/js/login.js index fe56c53..ab59058 100644 --- a/dist/js/login.js +++ b/dist/js/login.js @@ -27,7 +27,11 @@ function login() { try { gsecInstance = new gsec(); } catch (error) { - $.getScript("/js/gsec.js"); + $.ajax({ + url: 'js/gsec.js?ajaxload', + async: false, + dataType: "script", + }); try { gsecInstance = new gsec(); } catch (error) { diff --git a/dist/pages/about.html b/dist/pages/about.html index 226713d..a096be9 100755 --- a/dist/pages/about.html +++ b/dist/pages/about.html @@ -142,7 +142,7 @@ <div class="row"> <p> <small> - ^HEAD 0a045055fbfa8a5228f1deeca9d85a4b6a7b0fca + ^HEAD 3b61e8681d5db498e76fa1c843062a0a7a403c64 </small> </p> </div> @@ -3,8 +3,8 @@ // Change version to cause cache refresh -const static_cache_name = "site-static-1.0.13-beta-0a04505"; -// latest commit is 0a045055fbfa8a5228f1deeca9d85a4b6a7b0fca +const static_cache_name = "site-static-1.0.13-beta-3b61e86"; +// latest commit is 3b61e8681d5db498e76fa1c843062a0a7a403c64 // Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js // sw.js NE SME BITI CACHAN, ker vsebuje verzijo! @@ -87,7 +87,10 @@ const assets = [ "/js/jitsi.js", "/pages/chats.html", "/js/chats.js", - "/css/bubbles.css" + "/css/bubbles.css", + + "/js/gsec.js", + "/js/gsec.js?ajaxload" ]; importScripts("/js/lib/localforage.min.js"); |