Update service-worker.js
This commit is contained in:
parent
45a7e90eb1
commit
fd87bf9691
|
@ -12,7 +12,7 @@ const PRE_CACHED_ASSETS = [
|
|||
self.addEventListener('install', e => {
|
||||
e.waitUntil(
|
||||
caches.open(CACHE_NAME).then(cache => {
|
||||
return cache.addAll([PRE_CACHED_ASSETS]).then(() => self.skipWaiting());
|
||||
return cache.addAll(PRE_CACHED_ASSETS).then(() => self.skipWaiting());
|
||||
})
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue