diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-08-27 18:13:24 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-27 18:13:24 +0530 |
commit | 155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch) | |
tree | d144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/hipchat/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/hipchat/webview.js')
-rw-r--r-- | recipes/hipchat/webview.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/hipchat/webview.js b/recipes/hipchat/webview.js index b888e30..c201f00 100644 --- a/recipes/hipchat/webview.js +++ b/recipes/hipchat/webview.js | |||
@@ -1,11 +1,11 @@ | |||
1 | module.exports = Franz => { | 1 | module.exports = Ferdi => { |
2 | const getMessages = function getMessages() { | 2 | const getMessages = function getMessages() { |
3 | const directMessages = document.querySelectorAll('.hc-mention').length; | 3 | const directMessages = document.querySelectorAll('.hc-mention').length; |
4 | const allMessages = document.querySelectorAll('.aui-badge:not(.hc-mention)').length - directMessages; | 4 | const allMessages = document.querySelectorAll('.aui-badge:not(.hc-mention)').length - directMessages; |
5 | 5 | ||
6 | // set Franz badge | 6 | // set Ferdi badge |
7 | Franz.setBadge(directMessages, allMessages); | 7 | Ferdi.setBadge(directMessages, allMessages); |
8 | }; | 8 | }; |
9 | Franz.loop(getMessages); | 9 | |
10 | Ferdi.loop(getMessages); | ||
10 | }; | 11 | }; |
11 | // # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLC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