diff options
Diffstat (limited to 'recipes/facebookpages')
-rw-r--r-- | recipes/facebookpages/index.js | 2 | ||||
-rw-r--r-- | recipes/facebookpages/package.json | 2 | ||||
-rw-r--r-- | recipes/facebookpages/webview.js | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/facebookpages/index.js b/recipes/facebookpages/index.js index 23607bd..dd41f72 100644 --- a/recipes/facebookpages/index.js +++ b/recipes/facebookpages/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/facebookpages/package.json b/recipes/facebookpages/package.json index 313e11b..750264a 100644 --- a/recipes/facebookpages/package.json +++ b/recipes/facebookpages/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "facebookpages", | 2 | "id": "facebookpages", |
3 | "name": "Facebook Pages", | 3 | "name": "Facebook Pages", |
4 | "version": "1.2.3", | 4 | "version": "1.3.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://facebook.com/{teamId}/", | 7 | "serviceURL": "https://facebook.com/{teamId}/", |
diff --git a/recipes/facebookpages/webview.js b/recipes/facebookpages/webview.js index 45f4e95..d624017 100644 --- a/recipes/facebookpages/webview.js +++ b/recipes/facebookpages/webview.js | |||
@@ -1,16 +1,16 @@ | |||
1 | module.exports = (Ferdi, options) => { | 1 | module.exports = (Ferdium, options) => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let messages = 0; | 3 | let messages = 0; |
4 | const element = document.querySelector('[data-testid="message_count"] span'); | 4 | const element = document.querySelector('[data-testid="message_count"] span'); |
5 | 5 | ||
6 | if (element) { | 6 | if (element) { |
7 | messages = Ferdi.safeParseInt(element.textContent); | 7 | messages = Ferdium.safeParseInt(element.textContent); |
8 | } | 8 | } |
9 | 9 | ||
10 | Ferdi.setBadge(messages); | 10 | Ferdium.setBadge(messages); |
11 | }; | 11 | }; |
12 | 12 | ||
13 | Ferdi.loop(getMessages); | 13 | Ferdium.loop(getMessages); |
14 | 14 | ||
15 | setTimeout(() => { | 15 | setTimeout(() => { |
16 | if (document.body && !document.body.classList.contains('UIPage_LoggedOut')) { | 16 | if (document.body && !document.body.classList.contains('UIPage_LoggedOut')) { |