fix: sw
This commit is contained in:
parent
7f970ff899
commit
37a0c62ccf
@ -1,6 +1,7 @@
|
||||
const CACHE_NAME = 'hubl-store-dev';
|
||||
|
||||
self.addEventListener('install', function (e) {
|
||||
self.skipWaiting();
|
||||
e.waitUntil(
|
||||
caches.open(CACHE_NAME).then(function (cache) {
|
||||
return cache.addAll([
|
||||
@ -11,7 +12,7 @@ self.addEventListener('install', function (e) {
|
||||
'/index.html',
|
||||
'/'
|
||||
]);
|
||||
}).then(() => e.skipWaiting())
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user