mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 07:42:12 -05:00
Fix desktop notifications (#1251)
This commit is contained in:
@@ -147,7 +147,7 @@
|
||||
sideBuf += this.renderRoomTab(room);
|
||||
}
|
||||
if (window.nodewebkit) {
|
||||
if (nwWindow.setBadgeLabel) nwWindow.setBadgeLabel('' + notificationCount || '');
|
||||
if (nwWindow.setBadgeLabel) nwWindow.setBadgeLabel(notificationCount ? '' + notificationCount : '');
|
||||
} else {
|
||||
var $favicon = $('#dynamic-favicon');
|
||||
if (!!$favicon.data('on') !== !!notificationCount) {
|
||||
|
||||
Reference in New Issue
Block a user