mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-07-11 06:29:02 +00:00
13 lines
269 B
JavaScript
13 lines
269 B
JavaScript
onfetch = function(e) {
|
|
if (e.request.url.indexOf("service_worker_controlled") >= 0) {
|
|
// pass through
|
|
e.respondWith(fetch(e.request));
|
|
} else {
|
|
e.respondWith(new Response("Fetch was intercepted"));
|
|
}
|
|
}
|
|
|
|
onmessage = function(e) {
|
|
clients.claim();
|
|
}
|