Add skipWay to sw
This commit is contained in:
parent
ef6c37005f
commit
325b3aead3
@ -16,6 +16,7 @@ var urlsToCache = [
|
|||||||
|
|
||||||
self.addEventListener('install', function (event) {
|
self.addEventListener('install', function (event) {
|
||||||
// Perform install steps
|
// Perform install steps
|
||||||
|
self.skipWaiting();
|
||||||
event.waitUntil(
|
event.waitUntil(
|
||||||
caches.open(CACHE_NAME)
|
caches.open(CACHE_NAME)
|
||||||
.then(function (cache) {
|
.then(function (cache) {
|
||||||
|
Loading…
Reference in New Issue
Block a user