mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-08-01 12:29:07 +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());
|
||
|
}
|