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.
This commit is contained in:
Bruno Windels 2021-03-25 10:11:05 +01:00
parent e54a707684
commit 889ca05506

View file

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