tenfourfox/dom/workers/test/serviceworkers/match_all_worker.js

11 lines
188 B
JavaScript
Raw Normal View History

2017-04-19 07:56:45 +00:00
function loop() {
self.clients.matchAll().then(function(result) {
setTimeout(loop, 0);
});
}
onactivate = function(e) {
// spam matchAll until the worker is closed.
loop();
}