Remove unnecessary 'tag' from Notification construction

This commit is contained in:
Scott Nonnenberg 2019-03-14 11:58:26 -07:00
parent 32fa5cccde
commit 0e5f405b53
1 changed files with 2 additions and 4 deletions

View File

@ -137,15 +137,13 @@
drawAttention();
const notification = new Notification(title, {
this.lastNotification = new Notification(title, {
body: message,
icon: iconUrl,
tag: isNotificationGroupingSupported ? 'signal' : undefined,
silent: !status.shouldPlayNotificationSound,
});
notification.onclick = () =>
this.lastNotification.onclick = () =>
this.trigger('click', last.conversationId, last.id);
this.lastNotification = notification;
// We continue to build up more and more messages for our notifications
// until the user comes back to our app or closes the app. Then well