mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
fix: remove includeUncontrolled as we are posting messages, and that only works with windows you control lol
This commit is contained in:
@@ -56,10 +56,7 @@ self.addEventListener('notificationclick', (event) => {
|
|||||||
// This looks to see if the current is already open and focuses if it is
|
// This looks to see if the current is already open and focuses if it is
|
||||||
event.waitUntil(
|
event.waitUntil(
|
||||||
self.clients
|
self.clients
|
||||||
.matchAll({
|
.matchAll({ type: 'window' })
|
||||||
type: 'window',
|
|
||||||
includeUncontrolled: true,
|
|
||||||
})
|
|
||||||
.then((clientList) => {
|
.then((clientList) => {
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
// eslint-disable-next-line no-restricted-syntax
|
||||||
for (const client of clientList) {
|
for (const client of clientList) {
|
||||||
|
|||||||
Reference in New Issue
Block a user