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