aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/infomaniak-mail/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/infomaniak-mail/webview.js')
-rw-r--r--recipes/infomaniak-mail/webview.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/infomaniak-mail/webview.js b/recipes/infomaniak-mail/webview.js
index be8053c..940eb82 100644
--- a/recipes/infomaniak-mail/webview.js
+++ b/recipes/infomaniak-mail/webview.js
@@ -1,9 +1,9 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 const count = document.querySelector('.ws-tree-node-badge'); 3 const count = document.querySelector('.ws-tree-node-badge');
4 const countText = count ? count.textContent : null; 4 const countText = count ? count.textContent : null;
5 Ferdi.setBadge(count && countText ? Number(countText) : 0); 5 Ferdium.setBadge(count && countText ? Number(countText) : 0);
6 }; 6 };
7 7
8 Ferdi.loop(getMessages); 8 Ferdium.loop(getMessages);
9}; 9};