diff options
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 | }; |