aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/twitter
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/twitter')
-rw-r--r--recipes/twitter/index.js2
-rw-r--r--recipes/twitter/package.json2
-rw-r--r--recipes/twitter/webview.js10
3 files changed, 7 insertions, 7 deletions
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 @@
1{ 1{
2 "id": "twitter", 2 "id": "twitter",
3 "name": "Twitter", 3 "name": "Twitter",
4 "version": "1.2.1", 4 "version": "1.3.0",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/ferdium/ferdium-recipes", 6 "repository": "https://github.com/ferdium/ferdium-recipes",
7 "config": { 7 "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 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 let direct = 0; 3 let direct = 0;
4 4
@@ -8,17 +8,17 @@ module.exports = Ferdi => {
8 '[data-testid=AppTabBar_Notifications_Link] div div div', 8 '[data-testid=AppTabBar_Notifications_Link] div div div',
9 ); 9 );
10 if (notificationsElement) { 10 if (notificationsElement) {
11 direct += Ferdi.safeParseInt(notificationsElement.textContent); 11 direct += Ferdium.safeParseInt(notificationsElement.textContent);
12 } 12 }
13 const DMElement = document.querySelector( 13 const DMElement = document.querySelector(
14 '[data-testid=AppTabBar_DirectMessage_Link] div div div', 14 '[data-testid=AppTabBar_DirectMessage_Link] div div div',
15 ); 15 );
16 if (DMElement) { 16 if (DMElement) {
17 direct += Ferdi.safeParseInt(DMElement.textContent); 17 direct += Ferdium.safeParseInt(DMElement.textContent);
18 } 18 }
19 19
20 Ferdi.setBadge(direct); 20 Ferdium.setBadge(direct);
21 }; 21 };
22 22
23 Ferdi.loop(getMessages); 23 Ferdium.loop(getMessages);
24}; 24};