aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/proton-mail/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/proton-mail/webview.js')
-rw-r--r--recipes/proton-mail/webview.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes/proton-mail/webview.js b/recipes/proton-mail/webview.js
new file mode 100644
index 0000000..8d85afd
--- /dev/null
+++ b/recipes/proton-mail/webview.js
@@ -0,0 +1,7 @@
1module.exports = Franz => {
2 function getMessages() {
3 const count = document.querySelector('.navigationItem-counter').innerText
4 Franz.setBadge(count ? Number(count.substring(1, count.length - 1)) : 0)
5 }
6 Franz.loop(getMessages)
7}