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) --- recipes/github/package.json | 2 +- recipes/github/webview.js | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'recipes') 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