v7
This commit is contained in:
parent
5d4ca0c82e
commit
c5f54b091e
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Active Service Worker URL: ' + reg.active.scriptURL);
|
console.log('Active Service Worker URL: ' + reg.active.scriptURL);
|
||||||
const currentSWVersion = reg.active.scriptURL.split("=")[1];
|
const currentSWVersion = reg.active.scriptURL.split("=")[1].replaceAll("%22", "");;
|
||||||
console.log('Active Service Worker Version: ' + serviceWorkerVersion.replaceAll("\"", ""));
|
console.log('Active Service Worker Version: ' + serviceWorkerVersion.replaceAll("\"", ""));
|
||||||
console.log('Latest Service Worker Version: ' + currentSWVersion);
|
console.log('Latest Service Worker Version: ' + currentSWVersion);
|
||||||
const isMatch = currentSWVersion === serviceWorkerVersion.replaceAll("\"", "");
|
const isMatch = currentSWVersion === serviceWorkerVersion.replaceAll("\"", "");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue