From 0f32d166e4ad7370c35008d4c1737d095886c5a6 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Fri, 25 Aug 2023 13:15:29 -0700 Subject: fix path in PWA npm script for cachebust hash --- static/js/sw_load.js | 2 +- static/js/sw_load.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'static/js') diff --git a/static/js/sw_load.js b/static/js/sw_load.js index 8c72944..918fe11 100644 --- a/static/js/sw_load.js +++ b/static/js/sw_load.js @@ -1,6 +1,6 @@ if ("serviceWorker" in navigator) { navigator.serviceWorker - .register("/sw.min.js?v=3.8.0", { scope: "/" }) + .register("/sw.min.js?v=3.8.1", { scope: "/" }) .then(() => { //console.info("SW Loaded"); }, err => console.error("SW error: ", err)); diff --git a/static/js/sw_load.min.js b/static/js/sw_load.min.js index e991797..3a9ce3e 100644 --- a/static/js/sw_load.min.js +++ b/static/js/sw_load.min.js @@ -1 +1 @@ -"serviceWorker"in navigator&&(navigator.serviceWorker.register("/sw.min.js?v=3.8.0",{scope:"/"}).then(()=>{},r=>console.error("SW error: ",r)),navigator.serviceWorker.ready.then(()=>{})); \ No newline at end of file +"serviceWorker"in navigator&&(navigator.serviceWorker.register("/sw.min.js?v=3.8.1",{scope:"/"}).then(()=>{},r=>console.error("SW error: ",r)),navigator.serviceWorker.ready.then(()=>{})); \ No newline at end of file -- cgit v1.3.1