diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index bbdbab210..cca0721d0 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -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' diff --git a/builds/crx/script.js b/builds/crx/script.js index 08b829bc5..96a28e0e2 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -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' diff --git a/src/General/Header.coffee b/src/General/Header.coffee index 1f998f660..c9cddfbbe 100644 --- a/src/General/Header.coffee +++ b/src/General/Header.coffee @@ -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'