From 433da7ae8bfaaf578f8a49c60f7febd2f740ffac Mon Sep 17 00:00:00 2001 From: Vijay A Date: Fri, 8 Jul 2022 21:21:33 +0530 Subject: Fix indirect notification count in github recipe (fixes #108) --- recipes/github/package.json | 2 +- recipes/github/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/github/package.json b/recipes/github/package.json index d939907..18adf96 100644 --- a/recipes/github/package.json +++ b/recipes/github/package.json @@ -1,7 +1,7 @@ { "id": "github", "name": "GitHub", - "version": "2.5.0", + "version": "2.5.1", "license": "MIT", "config": { "serviceURL": "https://github.com/notifications", diff --git a/recipes/github/webview.js b/recipes/github/webview.js index aaa1e5d..ab55792 100644 --- a/recipes/github/webview.js +++ b/recipes/github/webview.js @@ -12,7 +12,7 @@ module.exports = Ferdium => { '[class*="mail-status unread"]', ); let indirectCount = 0; - if (indirectCountElement) { + if (indirectCountElement && indirectCountElement.textContent.trim().length > 0) { indirectCount = 1; } -- cgit v1.2.3-70-g09d2