From 00d132835777ba7ef49f783b0b51edf4c3920e29 Mon Sep 17 00:00:00 2001 From: Thomas Papamichail Date: Thu, 5 Nov 2020 13:49:20 +0200 Subject: Update version & Show number of unread messages in the current folder & Show badge for unread messages everywhere --- recipes/zoho/webview.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'recipes/zoho/webview.js') 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'); module.exports = (Franz, options) => { const getMessages = () => { - const unreadMail = $("#zmlTree .zmTreeNDWra .zmBold").length; + const unreadMailInCurrentFolder = $(".zmList.zmLUrd").length; + const unreadMailAnyware = $("#zmlTree .zmTreeNDWra .zmBold").length; - Franz.setBadge(unreadMail); + Franz.setBadge(unreadMailInCurrentFolder, unreadMailAnyware); } Franz.loop(getMessages); -- cgit v1.2.3-70-g09d2