From 51431a33f63f6f5619477f12209dd915d6dd57e1 Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Wed, 29 Sep 2021 09:00:36 +0200 Subject: fix: searching repos on github clogs notifications (#729) --- all.json | 2 +- recipes/github/package.json | 2 +- recipes/github/webview.js | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/all.json b/all.json index e97b126..7ecb530 100644 --- a/all.json +++ b/all.json @@ -490,7 +490,7 @@ "featured": false, "id": "github", "name": "GitHub", - "version": "2.3.0", + "version": "2.3.1", "icons": { "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/github/icon.svg" } diff --git a/recipes/github/package.json b/recipes/github/package.json index 5a35240..5ecd276 100644 --- a/recipes/github/package.json +++ b/recipes/github/package.json @@ -1,7 +1,7 @@ { "id": "github", "name": "GitHub", - "version": "2.3.0", + "version": "2.3.1", "license": "MIT", "config": { "serviceURL": "https://github.com/notifications", diff --git a/recipes/github/webview.js b/recipes/github/webview.js index 36d98a6..47d4a13 100644 --- a/recipes/github/webview.js +++ b/recipes/github/webview.js @@ -1,12 +1,16 @@ module.exports = Ferdi => { const getMessages = () => { - const directCountElement = document.querySelector('.filter-list .count'); + const directCountElement = document.querySelector( + '.filter-list.js-notification-inboxes .count', + ); let directCount = 0; if (directCountElement) { directCount = Ferdi.safeParseInt(directCountElement.innerHTML); } - const indirectCountElement = document.querySelector('[class*="mail-status unread"]'); + const indirectCountElement = document.querySelector( + '[class*="mail-status unread"]', + ); let indirectCount = 0; if (indirectCountElement) { indirectCount = 1; -- cgit v1.2.3-70-g09d2