diff options
Diffstat (limited to 'recipes/twitter-dm')
-rw-r--r-- | recipes/twitter-dm/index.js | 2 | ||||
-rw-r--r-- | recipes/twitter-dm/package.json | 2 | ||||
-rw-r--r-- | recipes/twitter-dm/webview.js | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/twitter-dm/index.js b/recipes/twitter-dm/index.js index 23607bd..dd41f72 100644 --- a/recipes/twitter-dm/index.js +++ b/recipes/twitter-dm/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/twitter-dm/package.json b/recipes/twitter-dm/package.json index f40d6d9..208e82d 100644 --- a/recipes/twitter-dm/package.json +++ b/recipes/twitter-dm/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "twitter-dm", | 2 | "id": "twitter-dm", |
3 | "name": "Twitter DM", | 3 | "name": "Twitter DM", |
4 | "version": "1.1.2", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://mobile.twitter.com/messages", | 7 | "serviceURL": "https://mobile.twitter.com/messages", |
diff --git a/recipes/twitter-dm/webview.js b/recipes/twitter-dm/webview.js index dd6856a..e8f7dd1 100644 --- a/recipes/twitter-dm/webview.js +++ b/recipes/twitter-dm/webview.js | |||
@@ -1,13 +1,13 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let count = 0; | 3 | let count = 0; |
4 | const elem = document.querySelector('a[href="/messages"] div div'); | 4 | const elem = document.querySelector('a[href="/messages"] div div'); |
5 | if (elem) { | 5 | if (elem) { |
6 | count = Ferdi.safeParseInt(elem.textContent); | 6 | count = Ferdium.safeParseInt(elem.textContent); |
7 | } | 7 | } |
8 | 8 | ||
9 | Ferdi.setBadge(count); | 9 | Ferdium.setBadge(count); |
10 | }; | 10 | }; |
11 | 11 | ||
12 | Ferdi.loop(getMessages); | 12 | Ferdium.loop(getMessages); |
13 | }; | 13 | }; |