Notifier is how singleton is known outside of this module, use this inside

pull/21833/head
Bruno Windels 2019-03-29 16:27:37 +01:00
parent a326c83016
commit 39355c8270
1 changed files with 2 additions and 2 deletions

View File

@ -226,8 +226,8 @@ const Notifier = {
return false;
}
const isGuest = client.isGuest();
return !isGuest && Notifier.supportsDesktopNotifications() &&
!Notifier.isEnabled() && !Notifier._isToolbarHidden();
return !isGuest && this.supportsDesktopNotifications() &&
!this.isEnabled() && !this._isToolbarHidden();
},
_isToolbarHidden: function() {