Add icon to notifications

This commit is contained in:
Karina Kwiatek 2022-12-24 20:11:30 +00:00
parent 062e293607
commit 16eb27cc2b
1 changed files with 2 additions and 1 deletions

View File

@ -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);