aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
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
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')
-rw-r--r--recipes/gmail/package.json2
-rw-r--r--recipes/gmail/webview.js4
2 files changed, 4 insertions, 2 deletions
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 @@
1{ 1{
2 "id": "gmail", 2 "id": "gmail",
3 "name": "Gmail", 3 "name": "Gmail",
4 "version": "1.6.1", 4 "version": "1.6.2",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://mail.google.com" 7 "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 => {
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];