aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/todoist/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/todoist/webview.js
parentRemove deprecated webPreference flag (diff)
downloadferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/todoist/webview.js')
-rw-r--r--recipes/todoist/webview.js10
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 @@
1module.exports = Ferdi => { 1module.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};