aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ticktick/webview.js
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-10-04 16:38:03 +0200
committerLibravatar Bennett <hello@vantezzen.io>2020-10-04 16:38:03 +0200
commitf0e0b592a038e31038bb008b483714ca5bb57b50 (patch)
treec098657786e1327196be34673464b126898db3f9 /recipes/ticktick/webview.js
parentMerge pull request #310 from vraravam/yahoomail-recipe (diff)
downloadferdium-recipes-f0e0b592a038e31038bb008b483714ca5bb57b50.tar.gz
ferdium-recipes-f0e0b592a038e31038bb008b483714ca5bb57b50.tar.zst
ferdium-recipes-f0e0b592a038e31038bb008b483714ca5bb57b50.zip
Add TickTick
Diffstat (limited to 'recipes/ticktick/webview.js')
-rw-r--r--recipes/ticktick/webview.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes/ticktick/webview.js b/recipes/ticktick/webview.js
new file mode 100644
index 0000000..ba52883
--- /dev/null
+++ b/recipes/ticktick/webview.js
@@ -0,0 +1,10 @@
1module.exports = (Franz) => {
2 const getMessages = function getMessages() {
3//all overdue items are being counted
4 const count = document.querySelectorAll('.duedate-overdue').length;
5
6 Franz.setBadge(count);
7
8 };
9 Franz.loop(getMessages);
10};