diff options
Diffstat (limited to 'recipes/hey')
-rw-r--r-- | recipes/hey/index.js | 2 | ||||
-rw-r--r-- | recipes/hey/package.json | 2 | ||||
-rw-r--r-- | recipes/hey/webview.js | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/hey/index.js b/recipes/hey/index.js index 23607bd..dd41f72 100644 --- a/recipes/hey/index.js +++ b/recipes/hey/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/hey/package.json b/recipes/hey/package.json index f681f80..e3bc1e2 100644 --- a/recipes/hey/package.json +++ b/recipes/hey/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "hey", | 2 | "id": "hey", |
3 | "name": "Hey", | 3 | "name": "Hey", |
4 | "version": "1.0.1", | 4 | "version": "1.1.0", |
5 | "repository": "https://github.com/cpwood/recipe-hey", | 5 | "repository": "https://github.com/cpwood/recipe-hey", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://app.hey.com", | 7 | "serviceURL": "https://app.hey.com", |
diff --git a/recipes/hey/webview.js b/recipes/hey/webview.js index 67e87d4..d92490b 100644 --- a/recipes/hey/webview.js +++ b/recipes/hey/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | if (document.location.href == 'https://app.hey.com/') { | 3 | if (document.location.href == 'https://app.hey.com/') { |
4 | let screener = 0; | 4 | let screener = 0; |
@@ -8,7 +8,7 @@ module.exports = Ferdi => { | |||
8 | let text = document.querySelectorAll('.btn--icon-screener')[0] | 8 | let text = document.querySelectorAll('.btn--icon-screener')[0] |
9 | .textContent; | 9 | .textContent; |
10 | if (text) { | 10 | if (text) { |
11 | const parsedText = Ferdi.safeParseInt(/\d+/.exec(text)); | 11 | const parsedText = Ferdium.safeParseInt(/\d+/.exec(text)); |
12 | screener = parsedText[0]; | 12 | screener = parsedText[0]; |
13 | } | 13 | } |
14 | } | 14 | } |
@@ -26,9 +26,9 @@ module.exports = Ferdi => { | |||
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | Ferdi.setBadge(unread, screener); | 29 | Ferdium.setBadge(unread, screener); |
30 | } | 30 | } |
31 | }; | 31 | }; |
32 | 32 | ||
33 | Ferdi.loop(getMessages); | 33 | Ferdium.loop(getMessages); |
34 | }; | 34 | }; |