diff options
Diffstat (limited to 'recipes/mattermost/webview.js')
-rw-r--r-- | recipes/mattermost/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/mattermost/webview.js b/recipes/mattermost/webview.js index 88d1b80..179a43a 100644 --- a/recipes/mattermost/webview.js +++ b/recipes/mattermost/webview.js | |||
@@ -5,7 +5,7 @@ module.exports = Ferdi => { | |||
5 | const ALL_MESSAGES = '#sidebar-left .unread-title'; | 5 | const ALL_MESSAGES = '#sidebar-left .unread-title'; |
6 | const ALL_MESSAGES_LEGACY = '#sidebar-left .unread-title'; | 6 | const ALL_MESSAGES_LEGACY = '#sidebar-left .unread-title'; |
7 | 7 | ||
8 | const getMessages = function getMessages() { | 8 | const getMessages = () => { |
9 | const directMessagesSelector = [DIRECT_MESSAGES_LEGACY, DIRECT_MESSAGES_INDIVIDUAL, DIRECT_MESSAGES_GROUP].join(', '); | 9 | const directMessagesSelector = [DIRECT_MESSAGES_LEGACY, DIRECT_MESSAGES_INDIVIDUAL, DIRECT_MESSAGES_GROUP].join(', '); |
10 | const directMessages = document.querySelectorAll(directMessagesSelector).length; | 10 | const directMessages = document.querySelectorAll(directMessagesSelector).length; |
11 | 11 | ||