Include uncontrolled clients into clients to focus

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-06-18 18:41:53 +02:00
parent aed3f74be1
commit 4e1d49693f
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -138,6 +138,7 @@ self.addEventListener("notificationclick", function (event: NotificationEvent) {
(async () => { (async () => {
const clientList = await self.clients.matchAll({ const clientList = await self.clients.matchAll({
type: "window", type: "window",
includeUncontrolled: true,
}); });
for (let i = 0; i < clientList.length; i++) { for (let i = 0; i < clientList.length; i++) {
const client = clientList[i] as WindowClient; const client = clientList[i] as WindowClient;