fix: remove includeUncontrolled as we are posting messages, and that only works with windows you control lol

This commit is contained in:
Julian Lam
2024-09-12 16:12:19 -04:00
parent 471fbd3ab4
commit 028b6d74b2

View File

@@ -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) {