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
1 changed files with 1 additions and 0 deletions

View File

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