Fix Desktop Notifications
This commit is contained in:
parent
fbed325076
commit
cbecf966a9
@ -3897,7 +3897,7 @@
|
||||
});
|
||||
$.on(window, 'load hashchange', Header.hashScroll);
|
||||
$.on(d, 'CreateNotification', this.createNotification);
|
||||
return $.asap((function() {
|
||||
$.asap((function() {
|
||||
return d.body;
|
||||
}), function() {
|
||||
if (!Main.isThisPageLegit()) {
|
||||
@ -3911,6 +3911,7 @@
|
||||
_this.setBarPosition(Conf['Bottom Header']);
|
||||
return _this;
|
||||
});
|
||||
return this.enableDesktopNotifications();
|
||||
},
|
||||
bar: $.el('div', {
|
||||
id: 'header-bar'
|
||||
|
||||
@ -3914,7 +3914,7 @@
|
||||
});
|
||||
$.on(window, 'load hashchange', Header.hashScroll);
|
||||
$.on(d, 'CreateNotification', this.createNotification);
|
||||
return $.asap((function() {
|
||||
$.asap((function() {
|
||||
return d.body;
|
||||
}), function() {
|
||||
if (!Main.isThisPageLegit()) {
|
||||
@ -3928,6 +3928,7 @@
|
||||
_this.setBarPosition(Conf['Bottom Header']);
|
||||
return _this;
|
||||
});
|
||||
return this.enableDesktopNotifications();
|
||||
},
|
||||
bar: $.el('div', {
|
||||
id: 'header-bar'
|
||||
|
||||
@ -36,7 +36,6 @@ Header =
|
||||
$.sync 'Fixed Header', Header.setBarFixed
|
||||
$.sync 'Bottom Header', Header.setBarPosition
|
||||
|
||||
|
||||
$.event 'AddMenuEntry',
|
||||
type: 'header'
|
||||
el: $.el 'span',
|
||||
@ -63,6 +62,8 @@ Header =
|
||||
@setBarPosition Conf['Bottom Header']
|
||||
@
|
||||
|
||||
@enableDesktopNotifications()
|
||||
|
||||
bar: $.el 'div',
|
||||
id: 'header-bar'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user