forked from FoundKeyGang/FoundKey
Merge pull request 'sw: Remove fetch handler from service worker' (#116)
Reviewed-on: FoundKeyGang/FoundKey#116 Changelog: Fixed
This commit is contained in:
commit
f51f900115
1 changed files with 0 additions and 7 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue