From fd1dedf1b6ff238045a771b33144377b67ac449d Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 15 Jan 2024 10:00:01 +0530 Subject: Fix unread counts in gmail --- recipes/gmail/package.json | 2 +- recipes/gmail/webview.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'recipes') diff --git a/recipes/gmail/package.json b/recipes/gmail/package.json index adaa88f..f0ed457 100644 --- a/recipes/gmail/package.json +++ b/recipes/gmail/package.json @@ -1,7 +1,7 @@ { "id": "gmail", "name": "Gmail", - "version": "1.6.1", + "version": "1.6.2", "license": "MIT", "config": { "serviceURL": "https://mail.google.com" diff --git a/recipes/gmail/webview.js b/recipes/gmail/webview.js index 6db2eec..bfa2e06 100644 --- a/recipes/gmail/webview.js +++ b/recipes/gmail/webview.js @@ -18,7 +18,9 @@ module.exports = Ferdium => { let countImportant = 0; let countNonImportant = 0; const inboxLinks = document.querySelectorAll('.J-Ke.n0'); - const spaceAndChatBadges = document.querySelectorAll('span.XU.aH6'); + const spaceAndChatBadges = document.querySelectorAll( + 'div.Xa.bSyoAf span.XU', + ); if (inboxLinks.length > 0) { const { parentNode } = inboxLinks[0]; -- cgit v1.2.3-54-g00ecf