Try move this down

This commit is contained in:
Lim Chee Aun 2023-10-16 21:38:14 +08:00
parent c538cfeaaa
commit 119dae29ca

View file

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