diff options
author | Thomas Papamichail <thomas@pointer.gr> | 2020-11-05 13:49:20 +0200 |
---|---|---|
committer | Thomas Papamichail <thomas@pointer.gr> | 2020-11-05 13:49:20 +0200 |
commit | 00d132835777ba7ef49f783b0b51edf4c3920e29 (patch) | |
tree | 6bdd2e29f42b0e5f72c3a976f2fa0cb5ae000bfc /recipes/zoho/webview.js | |
parent | Fix unread emails css selector (diff) | |
download | ferdium-recipes-00d132835777ba7ef49f783b0b51edf4c3920e29.tar.gz ferdium-recipes-00d132835777ba7ef49f783b0b51edf4c3920e29.tar.zst ferdium-recipes-00d132835777ba7ef49f783b0b51edf4c3920e29.zip |
Update version & Show number of unread messages in the current folder & Show badge for unread messages everywhere
Diffstat (limited to 'recipes/zoho/webview.js')
-rw-r--r-- | recipes/zoho/webview.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes/zoho/webview.js b/recipes/zoho/webview.js index 2f6f58c..29ffa9c 100644 --- a/recipes/zoho/webview.js +++ b/recipes/zoho/webview.js | |||
@@ -2,9 +2,10 @@ 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 = $("#zmlTree .zmTreeNDWra .zmBold").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); |