gecko-dev/dom/serviceworkers/test/match_all_worker.js

11 строки
188 B
JavaScript

function loop() {
self.clients.matchAll().then(function(result) {
setTimeout(loop, 0);
});
}
onactivate = function(e) {
// spam matchAll until the worker is closed.
loop();
}