diff options
author | 2021-08-27 18:13:24 +0530 | |
---|---|---|
committer | 2021-08-27 18:13:24 +0530 | |
commit | 155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch) | |
tree | d144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/zoho/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/zoho/webview.js')
-rw-r--r-- | recipes/zoho/webview.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/recipes/zoho/webview.js b/recipes/zoho/webview.js index 60fd052..177ea4c 100644 --- a/recipes/zoho/webview.js +++ b/recipes/zoho/webview.js | |||
@@ -1,12 +1,10 @@ | |||
1 | const path = require('path'); | 1 | module.exports = (Ferdi) => { |
2 | |||
3 | module.exports = (Franz, options) => { | ||
4 | const getMessages = () => { | 2 | const getMessages = () => { |
5 | const unreadMailInCurrentFolder = $('.zmList.zmLUrd').length; | 3 | const unreadMailInCurrentFolder = $('.zmList.zmLUrd').length; |
6 | const unreadMailAnyware = $('#zmlTree .zmTreeNDWra .zmBold').length; | 4 | const unreadMailAnyware = $('#zmlTree .zmTreeNDWra .zmBold').length; |
7 | 5 | ||
8 | Franz.setBadge(unreadMailInCurrentFolder, unreadMailAnyware); | 6 | Ferdi.setBadge(unreadMailInCurrentFolder, unreadMailAnyware); |
9 | }; | 7 | }; |
10 | 8 | ||
11 | Franz.loop(getMessages); | 9 | Ferdi.loop(getMessages); |
12 | }; | 10 | }; |