forked from mystiq/hydrogen-web
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:
parent
e54a707684
commit
889ca05506
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue