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/webview.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes/wire/webview.js') 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