blob: 5e0f48976f6667bb4ac4c1c2ea0ce19d731294d4 [file] [log] [blame]
async function doTest(event)
{
let data = [];
const currentClients = await self.clients.matchAll({includeUncontrolled: true});
for (let client of currentClients) {
data.push({id:client.id, visibilityState:client.visibilityState, focused:client.focused, frameType:client.frameType });
}
event.source.postMessage(data);
}
self.addEventListener("message", doTest);