From 39355c8270c43a1d1c314ffa4d98683c40b76bd4 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 29 Mar 2019 16:27:37 +0100 Subject: [PATCH] Notifier is how singleton is known outside of this module, use this inside --- src/Notifier.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Notifier.js b/src/Notifier.js index ab8009c457..6a4f9827f7 100644 --- a/src/Notifier.js +++ b/src/Notifier.js @@ -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() {