diff options
Diffstat (limited to 'recipes/infomaniak-mail/webview.js')
-rw-r--r-- | recipes/infomaniak-mail/webview.js | 6 |
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 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.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 | }; |