aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/wire
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/wire
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/wire')
-rw-r--r--recipes/wire/index.js2
-rw-r--r--recipes/wire/package.json2
-rw-r--r--recipes/wire/webview.js10
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes/wire/index.js b/recipes/wire/index.js
index 653b54c..244fe33 100644
--- a/recipes/wire/index.js
+++ b/recipes/wire/index.js
@@ -1 +1 @@
module.exports = (Ferdi) => Ferdi; module.exports = (Ferdium) => Ferdium;
diff --git a/recipes/wire/package.json b/recipes/wire/package.json
index e0e2136..d7bfce4 100644
--- a/recipes/wire/package.json
+++ b/recipes/wire/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "wire", 2 "id": "wire",
3 "name": "Wire", 3 "name": "Wire",
4 "version": "1.0.4", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://app.wire.com/", 7 "serviceURL": "https://app.wire.com/",
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};