diff options
Diffstat (limited to 'recipes/mattermost/webview.js')
-rw-r--r-- | recipes/mattermost/webview.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/mattermost/webview.js b/recipes/mattermost/webview.js index 179a43a..32e990e 100644 --- a/recipes/mattermost/webview.js +++ b/recipes/mattermost/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const DIRECT_MESSAGES_INDIVIDUAL = '#sidebar-left .unread-title .DirectChannel__profile-picture'; | 2 | const DIRECT_MESSAGES_INDIVIDUAL = '#sidebar-left .unread-title .DirectChannel__profile-picture'; |
3 | const DIRECT_MESSAGES_GROUP = '#sidebar-left .unread-title .status--group'; | 3 | const DIRECT_MESSAGES_GROUP = '#sidebar-left .unread-title .status--group'; |
4 | const DIRECT_MESSAGES_LEGACY = '.sidebar--left .has-badge .badge'; | 4 | const DIRECT_MESSAGES_LEGACY = '.sidebar--left .has-badge .badge'; |
@@ -15,8 +15,8 @@ module.exports = Ferdi => { | |||
15 | const teamDirectMessages = document.querySelectorAll('.team-wrapper .team-container .badge').length; | 15 | const teamDirectMessages = document.querySelectorAll('.team-wrapper .team-container .badge').length; |
16 | const teamMessages = document.querySelectorAll('.team-wrapper .unread').length - teamDirectMessages; | 16 | const teamMessages = document.querySelectorAll('.team-wrapper .unread').length - teamDirectMessages; |
17 | 17 | ||
18 | Ferdi.setBadge(directMessages + teamDirectMessages, allMessages + teamMessages); | 18 | Ferdium.setBadge(directMessages + teamDirectMessages, allMessages + teamMessages); |
19 | }; | 19 | }; |
20 | 20 | ||
21 | Ferdi.loop(getMessages); | 21 | Ferdium.loop(getMessages); |
22 | }; | 22 | }; |