mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-06-14 16:21:24 +00:00
12 lines
367 B
JavaScript
12 lines
367 B
JavaScript
addEventListener('fetch', function(event) {
|
|
if (event.request.url.indexOf("fail.html") !== -1) {
|
|
event.respondWith(fetch("hello.html", {"integrity": "abc"}));
|
|
} else if (event.request.url.indexOf("fake.html") !== -1) {
|
|
event.respondWith(fetch("hello.html"));
|
|
}
|
|
});
|
|
|
|
addEventListener("activate", function(event) {
|
|
event.waitUntil(clients.claim());
|
|
});
|