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.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes/infomaniak-mail/webview.js b/recipes/infomaniak-mail/webview.js
index 71a022b..235a14d 100644
--- a/recipes/infomaniak-mail/webview.js
+++ b/recipes/infomaniak-mail/webview.js
@@ -1,7 +1,7 @@
1module.exports = Ferdi => { 1module.exports = Ferdi => {
2 function getMessages() { 2 function getMessages() {
3 const count = document.querySelector('.ws-tree-node-badge').innerText 3 const count = document.querySelector('.ws-tree-node-badge').innerText;
4 Ferdi.setBadge(count ? Number(count.substring(1, count.length - 1)) : 0) 4 Ferdi.setBadge(count ? Number(count.substring(1, count.length - 1)) : 0);
5 } 5 }
6 Ferdi.loop(getMessages) 6 Ferdi.loop(getMessages);
7} \ No newline at end of file 7};