From 18801ed0c02627e87639dc0848cab44dacc18be2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 18 Apr 2022 06:51:50 -0500 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/wire/index.js | 2 +- recipes/wire/package.json | 2 +- recipes/wire/webview.js | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'recipes/wire') 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 @@ { "id": "wire", "name": "Wire", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "config": { "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 @@ -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { let direct = 0; let indirect = 0; @@ -9,7 +9,7 @@ module.exports = Ferdi => { ); if (conversationElems) { for (const conversationElem of conversationElems) { - direct += Ferdi.safeParseInt(conversationElem.textContent); + direct += Ferdium.safeParseInt(conversationElem.textContent); } } @@ -21,7 +21,7 @@ module.exports = Ferdi => { const matches = pendingElem.textContent && pendingElem.textContent.match(/^([1-9]\d*)/); if (matches && matches.length > 1) { - indirect += Ferdi.safeParseInt(matches[1]); + indirect += Ferdium.safeParseInt(matches[1]); } } @@ -32,8 +32,8 @@ module.exports = Ferdi => { // direct = matches[1]; // } - Ferdi.setBadge(direct, indirect); + Ferdium.setBadge(direct, indirect); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); }; -- cgit v1.2.3-54-g00ecf