summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/appmanifest/id-member/id-member-service-worker.js
blob: c0a16c4a46657efbaa0b244686487a47c4c8e027 (plain)
1
2
3
4
5
6
7
8
// Some user agents only offer app installation if there is a SW and it handles
// offline requests.

self.addEventListener("fetch", e => {
  e.respondWith(fetch(e.request).catch(_ => {
    return new Response('Offline test.');
  }));
});