Skip to content

Commit

Permalink
Fix unread counts in gmail
Browse files Browse the repository at this point in the history
  • Loading branch information
vraravam committed Jan 16, 2024
1 parent 3f3e7be commit fd1dedf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion recipes/gmail/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "gmail",
"name": "Gmail",
"version": "1.6.1",
"version": "1.6.2",
"license": "MIT",
"config": {
"serviceURL": "https://mail.google.com"
Expand Down
4 changes: 3 additions & 1 deletion recipes/gmail/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit fd1dedf

Please sign in to comment.