diff --git a/src/client/sw/create-notification.ts b/src/client/sw/create-notification.ts index 921e92e0cc..8f69846253 100644 --- a/src/client/sw/create-notification.ts +++ b/src/client/sw/create-notification.ts @@ -205,6 +205,4 @@ async function composeAllReadNotification(type: string): Promise<[string, Notifi tag: 'user_visible_auto_notification', }]; } - - return; } diff --git a/src/client/sw/sw.ts b/src/client/sw/sw.ts index eb78571998..5b17855e08 100644 --- a/src/client/sw/sw.ts +++ b/src/client/sw/sw.ts @@ -39,9 +39,7 @@ self.addEventListener('fetch', ev => { //#region When: Caught Notification self.addEventListener('push', ev => { setTimeout(async () => { - console.log('to'); for (const n of await self.registration.getNotifications({ tag: 'user_visible_auto_notification' })) { - console.log(close) n.close(); } }, 5000);