From 889ca0550664ecb356b7415cac9efaf1e74f549d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 25 Mar 2021 10:11:05 +0100 Subject: [PATCH] log when we get a click from a notif without a tag like when the browser decides to show "site got updated in the background" notif in response to a unread=0 push message. --- src/platform/web/service-worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/web/service-worker.js b/src/platform/web/service-worker.js index 081c9053..cef18f6c 100644 --- a/src/platform/web/service-worker.js +++ b/src/platform/web/service-worker.js @@ -190,6 +190,7 @@ const NOTIF_TAG_NEW_MESSAGE = "new_message"; async function openClientFromNotif(event) { if (event.notification.tag !== NOTIF_TAG_NEW_MESSAGE) { + console.log("clicked notif with tag", event.notification.tag); return; } const {sessionId, roomId} = event.notification.data;