diff options
Diffstat (limited to 'assets')
-rw-r--r-- | assets/js/login.js | 6 | ||||
-rw-r--r-- | assets/root/sw.js.bvr | 5 |
2 files changed, 9 insertions, 2 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"); |