Merge pull request 'sw: Remove fetch handler from service worker' (#116)

Reviewed-on: FoundKeyGang/FoundKey#116
Changelog: Fixed
This commit is contained in:
Norm 2022-09-07 08:10:06 +00:00
commit f51f900115

View file

@ -23,13 +23,6 @@ self.addEventListener('activate', ev => {
);
});
self.addEventListener('fetch', ev => {
ev.respondWith(
fetch(ev.request)
.catch(() => new Response(`Offline. Service Worker @${_VERSION_}`, { status: 200 }))
);
});
self.addEventListener('push', ev => {
// クライアント取得
ev.waitUntil(self.clients.matchAll({