From 16eb27cc2b3df5fe402147a825204e49858b1f5a Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 24 Dec 2022 20:11:30 +0000 Subject: [PATCH] Add icon to notifications --- public/service_worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/service_worker.js b/public/service_worker.js index 7b903ecd..08e1f717 100644 --- a/public/service_worker.js +++ b/public/service_worker.js @@ -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);