forked from External/greenlight
fix multiple notifications when user has multiple tabs
This commit is contained in:
parent
8ac2c5d6d7
commit
16443584ab
|
@ -69,7 +69,8 @@ var showNotification = function(title, options) {
|
||||||
if (Notification.permission === "granted") {
|
if (Notification.permission === "granted") {
|
||||||
var icon = '<%= asset_path("bbb-logo.png") %>';
|
var icon = '<%= asset_path("bbb-logo.png") %>';
|
||||||
options = $.extend(options, {
|
options = $.extend(options, {
|
||||||
icon: icon
|
icon: icon,
|
||||||
|
tag: 'UserWaiting'
|
||||||
});
|
});
|
||||||
var notification = new Notification(title, options);
|
var notification = new Notification(title, options);
|
||||||
notification.onclick = function() {
|
notification.onclick = function() {
|
||||||
|
|
Loading…
Reference in New Issue