From f450a000734b74ac5fb47144ec8c6e5d692d4720 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 14 Jan 2024 21:13:17 +0100 Subject: [PATCH] Fix logged title --- sw/eventListener.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/eventListener.js b/sw/eventListener.js index 0eed9659..f73511a5 100644 --- a/sw/eventListener.js +++ b/sw/eventListener.js @@ -165,7 +165,7 @@ const mergeAndShowNotification = async (sw, payload, currentNotifications, tag, } const options = { icon: payload.options?.icon, tag, data: { url: '/notifications', ...mergedPayload } } - log(`[sw:push] ${nid} - show notification with title "${payload.title}"`) + log(`[sw:push] ${nid} - show notification with title "${title}"`) return await sw.registration.showNotification(title, options) }