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/index.js | 2 +- recipes/twitter/package.json | 2 +- recipes/twitter/webview.js | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'recipes/twitter') diff --git a/recipes/twitter/index.js b/recipes/twitter/index.js index 23607bd..dd41f72 100644 --- a/recipes/twitter/index.js +++ b/recipes/twitter/index.js @@ -1 +1 @@ -module.exports = Ferdi => Ferdi; +module.exports = Ferdium => Ferdium; diff --git a/recipes/twitter/package.json b/recipes/twitter/package.json index 485afb7..76e0ce0 100644 --- a/recipes/twitter/package.json +++ b/recipes/twitter/package.json @@ -1,7 +1,7 @@ { "id": "twitter", "name": "Twitter", - "version": "1.2.1", + "version": "1.3.0", "license": "MIT", "repository": "https://github.com/ferdium/ferdium-recipes", "config": { 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