aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gmail/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2024-01-15 10:00:01 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2024-01-16 01:56:18 +0000
commitfd1dedf1b6ff238045a771b33144377b67ac449d (patch)
tree62673b0d0418ba4c2bae8505d48f9b68bece9f6f /recipes/gmail/webview.js
parentUpgrade node to latest LTS (20.11.0) and pnpm to latest (8.14.1) (diff)
downloadferdium-recipes-fd1dedf1b6ff238045a771b33144377b67ac449d.tar.gz
ferdium-recipes-fd1dedf1b6ff238045a771b33144377b67ac449d.tar.zst
ferdium-recipes-fd1dedf1b6ff238045a771b33144377b67ac449d.zip
Fix unread counts in gmail
Diffstat (limited to 'recipes/gmail/webview.js')
-rw-r--r--recipes/gmail/webview.js4
1 files changed, 3 insertions, 1 deletions
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 => {
18 let countImportant = 0; 18 let countImportant = 0;
19 let countNonImportant = 0; 19 let countNonImportant = 0;
20 const inboxLinks = document.querySelectorAll('.J-Ke.n0'); 20 const inboxLinks = document.querySelectorAll('.J-Ke.n0');
21 const spaceAndChatBadges = document.querySelectorAll('span.XU.aH6'); 21 const spaceAndChatBadges = document.querySelectorAll(
22 'div.Xa.bSyoAf span.XU',
23 );
22 24
23 if (inboxLinks.length > 0) { 25 if (inboxLinks.length > 0) {
24 const { parentNode } = inboxLinks[0]; 26 const { parentNode } = inboxLinks[0];