From 4e6c34890c11cd3baa87313ee7b9fd6551f0119b Mon Sep 17 00:00:00 2001 From: Ashish Dobani Date: Fri, 3 Feb 2023 17:58:02 +0530 Subject: Fix unread notifications count for yahoo-mail (#308) --- recipes/yahoo-mail/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/yahoo-mail/webview.js') diff --git a/recipes/yahoo-mail/webview.js b/recipes/yahoo-mail/webview.js index d9f919c..9ab9b6b 100644 --- a/recipes/yahoo-mail/webview.js +++ b/recipes/yahoo-mail/webview.js @@ -1,6 +1,6 @@ module.exports = (Ferdium) => { const getMessages = () => { - const count = document.querySelector('a[data-test-folder-name="Inbox"]').getAttribute('data-test-unread-count'); + const count = document.querySelector('a[data-test-folder-name="Inbox"] span[data-test-id="displayed-count"]').textContent; Ferdium.setBadge(count); }; -- cgit v1.2.3-54-g00ecf