fix debug
This commit is contained in:
parent
d9b4ba3c5a
commit
f9d26b88a8
|
@ -111,7 +111,7 @@ self.addEventListener('notificationclose', ev => {
|
||||||
const { notification } = ev;
|
const { notification } = ev;
|
||||||
|
|
||||||
if (notification.title !== 'notificationclose') {
|
if (notification.title !== 'notificationclose') {
|
||||||
self.registration.showNotification('notificationclose', { body: `${notification.data.body.id}` });
|
self.registration.showNotification('notificationclose', { body: `${notification?.data?.body?.id}` });
|
||||||
}
|
}
|
||||||
const data: pushNotificationData = notification.data;
|
const data: pushNotificationData = notification.data;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue