blob: 9d1c8c36390ec1e0d3e229e77fe252ee3ee757d7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
function loop() {
self.clients.matchAll().then(function(result) {
setTimeout(loop, 0);
});
}
onactivate = function(e) {
// spam matchAll until the worker is closed.
loop();
}
|