From d087a67d5c59af1b495b3b6ceda4a225016653d8 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Wed, 1 Jun 2022 16:08:47 +0000 Subject: [PATCH] deploy to github pages de146ba6bc8b30ec01f0be697b4d1edec0648de1 --- service-worker.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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