Try move this down
This commit is contained in:
parent
c538cfeaaa
commit
119dae29ca
|
@ -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();
|
||||||
})(),
|
})(),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue