diff options
author | 2021-08-27 18:13:24 +0530 | |
---|---|---|
committer | 2021-08-27 18:13:24 +0530 | |
commit | 155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch) | |
tree | d144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/mattermost/webview.js | |
parent | docs: fixed template file for creating recipe. (diff) | |
download | ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.gz ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.zst ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.zip |
chore: normalized all recipes to ensure compatibility with es6 (#639)
- Removed some calls to set badge with '0' all the time.
- Removed all 'sourceMaps' since they are all outdated atm.
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 1d2a39c..88d1b80 100644 --- a/recipes/mattermost/webview.js +++ b/recipes/mattermost/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Franz => { | 1 | module.exports = Ferdi => { |
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 = Franz => { | |||
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 | Franz.setBadge(directMessages + teamDirectMessages, allMessages + teamMessages); | 18 | Ferdi.setBadge(directMessages + teamDirectMessages, allMessages + teamMessages); |
19 | }; | 19 | }; |
20 | 20 | ||
21 | Franz.loop(getMessages); | 21 | Ferdi.loop(getMessages); |
22 | }; | 22 | }; |