diff options
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 | }; | ||