diff options
Diffstat (limited to 'recipes/zoho')
-rw-r--r-- | recipes/zoho/index.js | 3 | ||||
-rw-r--r-- | recipes/zoho/package.json | 2 | ||||
-rw-r--r-- | recipes/zoho/webview.js | 8 |
3 files changed, 5 insertions, 8 deletions
diff --git a/recipes/zoho/index.js b/recipes/zoho/index.js index 46f936f..23607bd 100644 --- a/recipes/zoho/index.js +++ b/recipes/zoho/index.js | |||
@@ -1,2 +1 @@ | |||
1 | // just pass through Franz | module.exports = Ferdi => Ferdi; | |
2 | module.exports = Franz => Franz; | ||
diff --git a/recipes/zoho/package.json b/recipes/zoho/package.json index c2b9f15..0ad72c0 100644 --- a/recipes/zoho/package.json +++ b/recipes/zoho/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "zoho", | 2 | "id": "zoho", |
3 | "name": "Zoho Mail", | 3 | "name": "Zoho Mail", |
4 | "version": "1.0.4", | 4 | "version": "1.1.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://www.zoho.com/mail/login.html", | 7 | "serviceURL": "https://www.zoho.com/mail/login.html", |
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 | }; |