SWV update
This commit is contained in:
parent
24499e530a
commit
922302ed8e
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@
|
|||
const currentSWVersion = reg.active.scriptURL.split("=")[1];
|
||||
console.log('Active Service Worker Version: ' + serviceWorkerVersion);
|
||||
console.log('Latest Service Worker Version: ' + currentSWVersion);
|
||||
const isMatch = currentSWVersion === serviceWorkerVersion;
|
||||
const isMatch = currentSWVersion === serviceWorkerVersion.replaceAll("\"", "");
|
||||
console.log('On Latest Service Woprker: ' + isMatch);
|
||||
if (!reg.active && (reg.installing || reg.waiting)) {
|
||||
// No active web worker and we have installed or are installing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue