diff options
author | 2022-01-20 17:21:09 +0100 | |
---|---|---|
committer | 2022-01-20 17:21:09 +0100 | |
commit | e32c7afca34149d856634e4a3a75892c5606c191 (patch) | |
tree | 980627b289db96190ac91a75892ce1fd2923a4ba /recipes | |
parent | docs: add baukevdw as a contributor for code (#822) (diff) | |
download | ferdium-recipes-e32c7afca34149d856634e4a3a75892c5606c191.tar.gz ferdium-recipes-e32c7afca34149d856634e4a3a75892c5606c191.tar.zst ferdium-recipes-e32c7afca34149d856634e4a3a75892c5606c191.zip |
Fix Infomaniak message count (#823)
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/infomaniak-mail/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/infomaniak-mail/webview.js b/recipes/infomaniak-mail/webview.js index 4d8b006..be8053c 100644 --- a/recipes/infomaniak-mail/webview.js +++ b/recipes/infomaniak-mail/webview.js | |||
@@ -2,7 +2,7 @@ module.exports = Ferdi => { | |||
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.substring(1, countText.length - 1)) : 0); | 5 | Ferdi.setBadge(count && countText ? Number(countText) : 0); |
6 | }; | 6 | }; |
7 | 7 | ||
8 | Ferdi.loop(getMessages); | 8 | Ferdi.loop(getMessages); |