Merge branch 'sw-200' into sw-notification-action
This commit is contained in:
commit
dbb63dc5cb
|
@ -32,7 +32,10 @@ self.addEventListener('activate', ev => {
|
|||
|
||||
//#region When: Fetching
|
||||
self.addEventListener('fetch', ev => {
|
||||
// Nothing to do
|
||||
ev.respondWith(
|
||||
fetch(ev.request)
|
||||
.catch(() => new Response(`Offline. Service Worker @${version}`, { status: 200 }))
|
||||
);
|
||||
});
|
||||
//#endregion
|
||||
|
||||
|
|
Loading…
Reference in a new issue