| OLD | NEW |
| 1 self.onmessage = function(e) { | 1 self.onmessage = function(e) { |
| 2 self.clients.matchAll().then(function(clients) { | 2 self.clients.getAll().then(function(clients) { |
| 3 clients.forEach(function(client) { | 3 clients.forEach(function(client) { |
| 4 client.postMessage('Sending message via clients'); | 4 client.postMessage('Sending message via clients'); |
| 5 if (!Array.isArray(clients)) | 5 if (!Array.isArray(clients)) |
| 6 client.postMessage('clients is not an array'); | 6 client.postMessage('clients is not an array'); |
| 7 client.postMessage('quit'); | 7 client.postMessage('quit'); |
| 8 }); | 8 }); |
| 9 }); | 9 }); |
| 10 }; | 10 }; |
| OLD | NEW |