Add skipWay to sw

This commit is contained in:
Sebastien 2018-09-26 13:27:47 +03:00
parent ef6c37005f
commit 325b3aead3

View File

@ -16,6 +16,7 @@ var urlsToCache = [
self.addEventListener('install', function (event) {
// Perform install steps
self.skipWaiting();
event.waitUntil(
caches.open(CACHE_NAME)
.then(function (cache) {