Perhaps need to be inside waitUntil block?
This commit is contained in:
parent
7e1bb08b1b
commit
54e69ed23b
|
@ -163,9 +163,9 @@ self.addEventListener('notificationclick', (event) => {
|
|||
const { access_token, notification_type } = data;
|
||||
const url = `/#/notifications?id=${tag}&access_token=${btoa(access_token)}`;
|
||||
|
||||
event.notification.close();
|
||||
event.waitUntil(
|
||||
(async () => {
|
||||
await event.notification.close();
|
||||
const clients = await self.clients.matchAll({
|
||||
type: 'window',
|
||||
includeUncontrolled: true,
|
||||
|
|
Loading…
Reference in a new issue