mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-07-11 06:29:02 +00:00
18 lines
373 B
JavaScript
18 lines
373 B
JavaScript
onfetch = function(event) {
|
|
event.waitUntil(
|
|
clients.matchAll()
|
|
.then(clients => {
|
|
clients.forEach(client => {
|
|
client.postMessage("continue");
|
|
});
|
|
})
|
|
);
|
|
|
|
// never resolve
|
|
event.respondWith(new Promise(function(res, rej) {}));
|
|
}
|
|
|
|
onactivate = function(event) {
|
|
event.waitUntil(clients.claim());
|
|
}
|