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/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/github/webview.js') 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