diff options
Diffstat (limited to 'recipes/todoist')
-rw-r--r-- | recipes/todoist/index.js | 4 | ||||
-rw-r--r-- | recipes/todoist/webview.js | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/recipes/todoist/index.js b/recipes/todoist/index.js index e8243fb..258da41 100644 --- a/recipes/todoist/index.js +++ b/recipes/todoist/index.js | |||
@@ -1,3 +1 @@ | |||
1 | "use strict"; | module.exports = Franz => Franz; | |
2 | |||
3 | module.exports = Franz => Franz; \ No newline at end of file | ||
diff --git a/recipes/todoist/webview.js b/recipes/todoist/webview.js index ce73ceb..70bd71c 100644 --- a/recipes/todoist/webview.js +++ b/recipes/todoist/webview.js | |||
@@ -1,11 +1,9 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = (Franz, options) => { | 1 | module.exports = (Franz, options) => { |
4 | function getTasks() { | 2 | function getTasks() { |
5 | let todayCount = 0; | 3 | let todayCount = 0; |
6 | let inboxCount = 0; | 4 | let inboxCount = 0; |
7 | const todayElement = document.querySelector("#filter_today .item_counter"); | 5 | const todayElement = document.querySelector('#filter_today .item_counter'); |
8 | const inboxElement = document.querySelector("#filter_inbox .item_counter"); | 6 | const inboxElement = document.querySelector('#filter_inbox .item_counter'); |
9 | 7 | ||
10 | if (todayElement) { | 8 | if (todayElement) { |
11 | todayCount = parseInt(todayElement.innerHTML, 10); | 9 | todayCount = parseInt(todayElement.innerHTML, 10); |
@@ -19,4 +17,4 @@ module.exports = (Franz, options) => { | |||
19 | } | 17 | } |
20 | 18 | ||
21 | Franz.loop(getTasks); | 19 | Franz.loop(getTasks); |
22 | }; \ No newline at end of file | 20 | }; |