From 7517a409a1a502c747eb4598492a88cec4e8d58c Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 19 Sep 2021 07:26:25 +0530 Subject: fix: fix js error; styling --- recipes/mattermost/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/mattermost/webview.js') 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 => { const ALL_MESSAGES = '#sidebar-left .unread-title'; const ALL_MESSAGES_LEGACY = '#sidebar-left .unread-title'; - const getMessages = function getMessages() { + const getMessages = () => { const directMessagesSelector = [DIRECT_MESSAGES_LEGACY, DIRECT_MESSAGES_INDIVIDUAL, DIRECT_MESSAGES_GROUP].join(', '); const directMessages = document.querySelectorAll(directMessagesSelector).length; -- cgit v1.2.3-70-g09d2