fix multiple notifications when user has multiple tabs

This commit is contained in:
Josh 2017-10-12 14:50:42 -04:00
parent 8ac2c5d6d7
commit 16443584ab
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ var showNotification = function(title, options) {
if (Notification.permission === "granted") {
var icon = '<%= asset_path("bbb-logo.png") %>';
options = $.extend(options, {
icon: icon
icon: icon,
tag: 'UserWaiting'
});
var notification = new Notification(title, options);
notification.onclick = function() {