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/twitter/webview.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes/twitter/webview.js') diff --git a/recipes/twitter/webview.js b/recipes/twitter/webview.js index d88e3e4..d8341e4 100644 --- a/recipes/twitter/webview.js +++ b/recipes/twitter/webview.js @@ -1,4 +1,4 @@ -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { let direct = 0; @@ -8,17 +8,17 @@ module.exports = Ferdi => { '[data-testid=AppTabBar_Notifications_Link] div div div', ); if (notificationsElement) { - direct += Ferdi.safeParseInt(notificationsElement.textContent); + direct += Ferdium.safeParseInt(notificationsElement.textContent); } const DMElement = document.querySelector( '[data-testid=AppTabBar_DirectMessage_Link] div div div', ); if (DMElement) { - direct += Ferdi.safeParseInt(DMElement.textContent); + direct += Ferdium.safeParseInt(DMElement.textContent); } - Ferdi.setBadge(direct); + Ferdium.setBadge(direct); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); }; -- cgit v1.2.3-70-g09d2