Add icon to notifications
This commit is contained in:
parent
062e293607
commit
16eb27cc2b
|
@ -5,7 +5,8 @@ self.addEventListener('push', function (event) {
|
|||
|
||||
event.waitUntil(self.registration.showNotification(notification.title, {
|
||||
body: notification.body,
|
||||
tag: notification.type
|
||||
tag: notification.type,
|
||||
icon: "/icons/maskable_icon_x128.png"
|
||||
}));
|
||||
} else {
|
||||
console.error("Push event received, but it didn't contain any data.", event);
|
||||
|
|
Loading…
Reference in New Issue