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