summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/fetch/sandbox/sandbox_test.js
blob: 310cea0d169d148d6b2ddcbede159d2e2cae0255 (plain)
1
2
3
4
5
self.addEventListener("fetch", function (event) {
  if (event.request.url.includes("index.html")) {
    event.respondWith(fetch("intercepted_index.html"));
  }
});