aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/yahoo-mail/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/yahoo-mail/webview.js')
-rw-r--r--recipes/yahoo-mail/webview.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/recipes/yahoo-mail/webview.js b/recipes/yahoo-mail/webview.js
index fd5add1..fc47f26 100644
--- a/recipes/yahoo-mail/webview.js
+++ b/recipes/yahoo-mail/webview.js
@@ -1,9 +1,8 @@
1module.exports = (Franz) => { 1module.exports = (Ferdi) => {
2 const getMessages = function getMessages() { 2 const getMessages = function getMessages() {
3 const count = document.querySelector('a[data-test-folder-name="Inbox"]').getAttribute('data-test-unread-count'); 3 const count = document.querySelector('a[data-test-folder-name="Inbox"]').getAttribute('data-test-unread-count');
4 Franz.setBadge(count); 4 Ferdi.setBadge(count);
5 }; 5 };
6 6
7 // check for new messages every second and update Franz badge 7 Ferdi.loop(getMessages);
8 Franz.loop(getMessages);
9}; 8};