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/package.json | 2 +- recipes/yahoo-mail/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/yahoo-mail') diff --git a/recipes/yahoo-mail/package.json b/recipes/yahoo-mail/package.json index 9f5663c..a90df33 100644 --- a/recipes/yahoo-mail/package.json +++ b/recipes/yahoo-mail/package.json @@ -1,7 +1,7 @@ { "id": "yahoo-mail", "name": "Yahoo Mail", - "version": "1.2.1", + "version": "1.2.2", "license": "MIT", "config": { "serviceURL": "https://mail.yahoo.com", 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-70-g09d2