From e4e782c63a4abf5d4294a3909585b99bd2d25e74 Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 17 Feb 2021 02:31:03 +0900 Subject: [PATCH] fix lint --- src/client/sw/create-notification.ts | 2 -- src/client/sw/sw.ts | 2 -- 2 files changed, 4 deletions(-) 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);