From f0e0b592a038e31038bb008b483714ca5bb57b50 Mon Sep 17 00:00:00 2001 From: Bennett Date: Sun, 4 Oct 2020 16:38:03 +0200 Subject: Add TickTick --- recipes/ticktick/webview.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 recipes/ticktick/webview.js (limited to 'recipes/ticktick/webview.js') 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 @@ +module.exports = (Franz) => { + const getMessages = function getMessages() { +//all overdue items are being counted + const count = document.querySelectorAll('.duedate-overdue').length; + + Franz.setBadge(count); + + }; + Franz.loop(getMessages); +}; -- cgit v1.2.3-70-g09d2