diff --git a/service-worker.js b/service-worker.js index 40792638..9b6787a2 100644 --- a/service-worker.js +++ b/service-worker.js @@ -19,11 +19,7 @@ importScripts( workbox.core.setCacheNameDetails({prefix: "pptist"}); -self.addEventListener('message', (event) => { - if (event.data && event.data.type === 'SKIP_WAITING') { - self.skipWaiting(); - } -}); +workbox.core.skipWaiting(); /** * The workboxSW.precacheAndRoute() method efficiently caches and responds to