Try move this down

pull/264/head
Lim Chee Aun 2023-10-16 21:38:14 +08:00
rodzic c538cfeaaa
commit 119dae29ca
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -165,7 +165,6 @@ self.addEventListener('notificationclick', (event) => {
event.waitUntil( event.waitUntil(
(async () => { (async () => {
await event.notification.close();
const clients = await self.clients.matchAll({ const clients = await self.clients.matchAll({
type: 'window', type: 'window',
includeUncontrolled: true, includeUncontrolled: true,
@ -195,6 +194,7 @@ self.addEventListener('notificationclick', (event) => {
console.log('NOTIFICATION CLICK openWindow', url); console.log('NOTIFICATION CLICK openWindow', url);
await self.clients.openWindow(url); await self.clients.openWindow(url);
} }
await event.notification.close();
})(), })(),
); );
}); });