Update service-worker.js

This commit is contained in:
streetturtle 2018-09-25 14:55:45 -04:00 committed by GitHub
parent 45a7e90eb1
commit fd87bf9691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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());
})
);
});