fix debug

This commit is contained in:
tamaina 2021-02-11 17:14:16 +09:00
parent d9b4ba3c5a
commit f9d26b88a8

View file

@ -111,7 +111,7 @@ self.addEventListener('notificationclose', ev => {
const { notification } = ev;
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;