SWV update
This commit is contained in:
@@ -156,7 +156,7 @@
|
|||||||
const currentSWVersion = reg.active.scriptURL.split("=")[1];
|
const currentSWVersion = reg.active.scriptURL.split("=")[1];
|
||||||
console.log('Active Service Worker Version: ' + serviceWorkerVersion);
|
console.log('Active Service Worker Version: ' + serviceWorkerVersion);
|
||||||
console.log('Latest Service Worker Version: ' + currentSWVersion);
|
console.log('Latest Service Worker Version: ' + currentSWVersion);
|
||||||
const isMatch = currentSWVersion === serviceWorkerVersion;
|
const isMatch = currentSWVersion === serviceWorkerVersion.replaceAll("\"", "");
|
||||||
console.log('On Latest Service Woprker: ' + isMatch);
|
console.log('On Latest Service Woprker: ' + isMatch);
|
||||||
if (!reg.active && (reg.installing || reg.waiting)) {
|
if (!reg.active && (reg.installing || reg.waiting)) {
|
||||||
// No active web worker and we have installed or are installing
|
// No active web worker and we have installed or are installing
|
||||||
|
|||||||
Reference in New Issue
Block a user