aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/rainloop/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/rainloop/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/rainloop/webview.js')
-rw-r--r--recipes/rainloop/webview.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/rainloop/webview.js b/recipes/rainloop/webview.js
index 0a29849..6b0c3d6 100644
--- a/recipes/rainloop/webview.js
+++ b/recipes/rainloop/webview.js
@@ -1,4 +1,4 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 let messages = 0; 3 let messages = 0;
4 4
@@ -11,16 +11,16 @@ module.exports = Ferdi => {
11 if (obj.classList.contains('system')) { 11 if (obj.classList.contains('system')) {
12 // Only count the Inbox system folder and ignore Archive, Trash, Drafts, Spam, Sent 12 // Only count the Inbox system folder and ignore Archive, Trash, Drafts, Spam, Sent
13 if (obj.classList.contains('i-am-inbox')) { 13 if (obj.classList.contains('i-am-inbox')) {
14 messages += Ferdi.safeParseInt(countText); 14 messages += Ferdium.safeParseInt(countText);
15 } 15 }
16 } else { 16 } else {
17 messages += Ferdi.safeParseInt(countText); 17 messages += Ferdium.safeParseInt(countText);
18 } 18 }
19 } 19 }
20 } 20 }
21 21
22 Ferdi.setBadge(messages); 22 Ferdium.setBadge(messages);
23 }; 23 };
24 24
25 Ferdi.loop(getMessages); 25 Ferdium.loop(getMessages);
26}; 26};