diff options
Diffstat (limited to 'recipes/todoist/webview.js')
-rw-r--r-- | recipes/todoist/webview.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/todoist/webview.js b/recipes/todoist/webview.js index 30030d5..27b77ad 100644 --- a/recipes/todoist/webview.js +++ b/recipes/todoist/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | function getTasks() { | 2 | function getTasks() { |
3 | let todayCount = 0; | 3 | let todayCount = 0; |
4 | let inboxCount = 0; | 4 | let inboxCount = 0; |
@@ -6,15 +6,15 @@ module.exports = Ferdi => { | |||
6 | const inboxElement = document.querySelector('#filter_inbox .item_counter'); | 6 | const inboxElement = document.querySelector('#filter_inbox .item_counter'); |
7 | 7 | ||
8 | if (todayElement) { | 8 | if (todayElement) { |
9 | todayCount = Ferdi.safeParseInt(todayElement.textContent); | 9 | todayCount = Ferdium.safeParseInt(todayElement.textContent); |
10 | } | 10 | } |
11 | 11 | ||
12 | if (inboxElement) { | 12 | if (inboxElement) { |
13 | inboxCount = Ferdi.safeParseInt(inboxElement.textContent); | 13 | inboxCount = Ferdium.safeParseInt(inboxElement.textContent); |
14 | } | 14 | } |
15 | 15 | ||
16 | Ferdi.setBadge(inboxCount, todayCount); | 16 | Ferdium.setBadge(inboxCount, todayCount); |
17 | } | 17 | } |
18 | 18 | ||
19 | Ferdi.loop(getTasks); | 19 | Ferdium.loop(getTasks); |
20 | }; | 20 | }; |