diff options
author | 2020-10-04 16:38:03 +0200 | |
---|---|---|
committer | 2020-10-04 16:38:03 +0200 | |
commit | f0e0b592a038e31038bb008b483714ca5bb57b50 (patch) | |
tree | c098657786e1327196be34673464b126898db3f9 /recipes/ticktick/webview.js | |
parent | Merge pull request #310 from vraravam/yahoomail-recipe (diff) | |
download | ferdium-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.js | 10 |
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 @@ | |||
1 | module.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 | }; | ||