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/package.json | 2 +- recipes/zoho/webview.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'recipes/zoho') 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 @@ { "id": "zoho", "name": "Zoho Mail", - "version": "1.0.1", + "version": "1.0.2", "description": "Zoho Mail – Hosted Email for Businesses", "main": "index.js", "author": "Troke ", 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