Include uncontrolled clients into clients to focus
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
aed3f74be1
commit
4e1d49693f
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue