From ce35785f22c2e8e3640b29a2a160cd3f52a0290b Mon Sep 17 00:00:00 2001 From: Edgars Date: Fri, 24 Nov 2023 05:09:53 +0000 Subject: [PATCH] Add unread chats count to Zoho Mail's badge --- recipes/zoho/webview-unsafe.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes/zoho/webview-unsafe.js b/recipes/zoho/webview-unsafe.js index bed1dd017..077e8f8c2 100644 --- a/recipes/zoho/webview-unsafe.js +++ b/recipes/zoho/webview-unsafe.js @@ -1,7 +1,10 @@ // Wait for Ferdium to initialize if (window.ferdium?.setBadge !== undefined) { window.ferdium.setBadge( - window.ferdium.safeParseInt(window.zmfolAction?.getUnreadViewCount()), + window.ferdium.safeParseInt(window.zmfolAction?.getUnreadViewCount()) + + window.ferdium.safeParseInt( + document.querySelector('#wms_menu_unreadchats_cnt')?.textContent, + ), window.ferdium.safeParseInt( window.zmTopBar?.topBandElements()?.notification?.children ?.notificationBadge?.textContent,