This commit is contained in:
tamaina 2021-02-17 02:31:03 +09:00
parent e41aa2390c
commit e4e782c63a
2 changed files with 0 additions and 4 deletions

View File

@ -205,6 +205,4 @@ async function composeAllReadNotification(type: string): Promise<[string, Notifi
tag: 'user_visible_auto_notification',
}];
}
return;
}

View File

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