diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/todoist | |
parent | Allow any url in the custom-service to allow for sites like 'http://translate... (diff) | |
download | ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip |
Fixed eslintrc as root for this folder; Reformatted all files.
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 | }; |