diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/facebook/webview.js | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-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/facebook/webview.js')
-rwxr-xr-x | recipes/facebook/webview.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/facebook/webview.js b/recipes/facebook/webview.js index 3100935..d9e8687 100755 --- a/recipes/facebook/webview.js +++ b/recipes/facebook/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getNotifications = function getNotifications() { | 2 | const getNotifications = function getNotifications() { |
3 | let count = 0; | 3 | let count = 0; |
4 | 4 | ||
@@ -13,11 +13,11 @@ module.exports = Ferdi => { | |||
13 | 13 | ||
14 | for (const element of elements) { | 14 | for (const element of elements) { |
15 | if (element !== null) { | 15 | if (element !== null) { |
16 | count += Ferdi.safeParseInt(element.textContent); | 16 | count += Ferdium.safeParseInt(element.textContent); |
17 | } | 17 | } |
18 | } | 18 | } |
19 | 19 | ||
20 | Ferdi.setBadge(count); | 20 | Ferdium.setBadge(count); |
21 | }; | 21 | }; |
22 | 22 | ||
23 | const getActiveDialogTitle = () => { | 23 | const getActiveDialogTitle = () => { |
@@ -30,7 +30,7 @@ module.exports = Ferdi => { | |||
30 | ), | 30 | ), |
31 | ].find(Boolean); | 31 | ].find(Boolean); |
32 | 32 | ||
33 | Ferdi.setDialogTitle(element ? element.textContent : null); | 33 | Ferdium.setDialogTitle(element ? element.textContent : null); |
34 | }; | 34 | }; |
35 | 35 | ||
36 | const loopFunc = () => { | 36 | const loopFunc = () => { |
@@ -38,5 +38,5 @@ module.exports = Ferdi => { | |||
38 | getActiveDialogTitle(); | 38 | getActiveDialogTitle(); |
39 | }; | 39 | }; |
40 | 40 | ||
41 | Ferdi.loop(loopFunc); | 41 | Ferdium.loop(loopFunc); |
42 | }; | 42 | }; |