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/wire/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/wire/webview.js')
-rw-r--r-- | recipes/wire/webview.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/wire/webview.js b/recipes/wire/webview.js index cdb5058..5945515 100644 --- a/recipes/wire/webview.js +++ b/recipes/wire/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let direct = 0; | 3 | let direct = 0; |
4 | let indirect = 0; | 4 | let indirect = 0; |
@@ -9,7 +9,7 @@ module.exports = Ferdi => { | |||
9 | ); | 9 | ); |
10 | if (conversationElems) { | 10 | if (conversationElems) { |
11 | for (const conversationElem of conversationElems) { | 11 | for (const conversationElem of conversationElems) { |
12 | direct += Ferdi.safeParseInt(conversationElem.textContent); | 12 | direct += Ferdium.safeParseInt(conversationElem.textContent); |
13 | } | 13 | } |
14 | } | 14 | } |
15 | 15 | ||
@@ -21,7 +21,7 @@ module.exports = Ferdi => { | |||
21 | const matches = | 21 | const matches = |
22 | pendingElem.textContent && pendingElem.textContent.match(/^([1-9]\d*)/); | 22 | pendingElem.textContent && pendingElem.textContent.match(/^([1-9]\d*)/); |
23 | if (matches && matches.length > 1) { | 23 | if (matches && matches.length > 1) { |
24 | indirect += Ferdi.safeParseInt(matches[1]); | 24 | indirect += Ferdium.safeParseInt(matches[1]); |
25 | } | 25 | } |
26 | } | 26 | } |
27 | 27 | ||
@@ -32,8 +32,8 @@ module.exports = Ferdi => { | |||
32 | // direct = matches[1]; | 32 | // direct = matches[1]; |
33 | // } | 33 | // } |
34 | 34 | ||
35 | Ferdi.setBadge(direct, indirect); | 35 | Ferdium.setBadge(direct, indirect); |
36 | }; | 36 | }; |
37 | 37 | ||
38 | Ferdi.loop(getMessages); | 38 | Ferdium.loop(getMessages); |
39 | }; | 39 | }; |