aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/wire/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/wire/webview.js')
-rw-r--r--recipes/wire/webview.js10
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 @@
1module.exports = Ferdi => { 1module.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};