diff options
author | 2020-03-13 09:22:50 +0100 | |
---|---|---|
committer | 2020-03-13 09:22:50 +0100 | |
commit | 21bebcc1f8862b49f9750ba8b4010192ccd9e51c (patch) | |
tree | 6d47855484a94074c0da04b6143ea009b05ccfbf /uncompressed/zoho/webview.js | |
parent | Add Unraid + Netatmo Energy recipes (#65) (diff) | |
download | ferdium-recipes-21bebcc1f8862b49f9750ba8b4010192ccd9e51c.tar.gz ferdium-recipes-21bebcc1f8862b49f9750ba8b4010192ccd9e51c.tar.zst ferdium-recipes-21bebcc1f8862b49f9750ba8b4010192ccd9e51c.zip |
#62 Add Zoho recipe (@jaredkotoff)
Diffstat (limited to 'uncompressed/zoho/webview.js')
-rw-r--r-- | uncompressed/zoho/webview.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/uncompressed/zoho/webview.js b/uncompressed/zoho/webview.js new file mode 100644 index 0000000..e4f6108 --- /dev/null +++ b/uncompressed/zoho/webview.js | |||
@@ -0,0 +1,11 @@ | |||
1 | const path = require('path'); | ||
2 | |||
3 | module.exports = (Franz, options) => { | ||
4 | const getMessages = () => { | ||
5 | const unreadMail = $(".zm_urd").not(".hidden").length; | ||
6 | |||
7 | Franz.setBadge(unreadMail); | ||
8 | } | ||
9 | |||
10 | Franz.loop(getMessages); | ||
11 | }; \ No newline at end of file | ||