From 028b6d74b2b09e666cd5339a19048a5f40fbecc1 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 12 Sep 2024 16:12:19 -0400 Subject: [PATCH] fix: remove includeUncontrolled as we are posting messages, and that only works with windows you control lol --- public/src/service-worker.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/public/src/service-worker.js b/public/src/service-worker.js index 0329661593..bcd3370ee0 100644 --- a/public/src/service-worker.js +++ b/public/src/service-worker.js @@ -56,10 +56,7 @@ self.addEventListener('notificationclick', (event) => { // This looks to see if the current is already open and focuses if it is event.waitUntil( self.clients - .matchAll({ - type: 'window', - includeUncontrolled: true, - }) + .matchAll({ type: 'window' }) .then((clientList) => { // eslint-disable-next-line no-restricted-syntax for (const client of clientList) {