diff options
author | 2020-11-07 11:02:31 +0100 | |
---|---|---|
committer | 2020-11-07 11:02:31 +0100 | |
commit | eb120f4e1fc05ee04901b662185a1e6fe03ce88b (patch) | |
tree | 6bdd2e29f42b0e5f72c3a976f2fa0cb5ae000bfc | |
parent | Add recipe for Nextcloud (#343) (diff) | |
parent | Update version & Show number of unread messages in the current folder & Show ... (diff) | |
download | ferdium-recipes-eb120f4e1fc05ee04901b662185a1e6fe03ce88b.tar.gz ferdium-recipes-eb120f4e1fc05ee04901b662185a1e6fe03ce88b.tar.zst ferdium-recipes-eb120f4e1fc05ee04901b662185a1e6fe03ce88b.zip |
Merge pull request #351 from tpapamichail/master
Zoho mail
-rw-r--r-- | recipes/zoho/package.json | 2 | ||||
-rw-r--r-- | recipes/zoho/webview.js | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/recipes/zoho/package.json b/recipes/zoho/package.json index 331f1e7..3b479d2 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.1", | 4 | "version": "1.0.2", |
5 | "description": "Zoho Mail – Hosted Email for Businesses", | 5 | "description": "Zoho Mail – Hosted Email for Businesses", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Troke <jame_glove@yahoo.com>", | 7 | "author": "Troke <jame_glove@yahoo.com>", |
diff --git a/recipes/zoho/webview.js b/recipes/zoho/webview.js index e4f6108..29ffa9c 100644 --- a/recipes/zoho/webview.js +++ b/recipes/zoho/webview.js | |||
@@ -2,10 +2,11 @@ const path = require('path'); | |||
2 | 2 | ||
3 | module.exports = (Franz, options) => { | 3 | module.exports = (Franz, options) => { |
4 | const getMessages = () => { | 4 | const getMessages = () => { |
5 | const unreadMail = $(".zm_urd").not(".hidden").length; | 5 | const unreadMailInCurrentFolder = $(".zmList.zmLUrd").length; |
6 | const unreadMailAnyware = $("#zmlTree .zmTreeNDWra .zmBold").length; | ||
6 | 7 | ||
7 | Franz.setBadge(unreadMail); | 8 | Franz.setBadge(unreadMailInCurrentFolder, unreadMailAnyware); |
8 | } | 9 | } |
9 | 10 | ||
10 | Franz.loop(getMessages); | 11 | Franz.loop(getMessages); |
11 | }; \ No newline at end of file | 12 | }; |