diff options
Diffstat (limited to 'recipes/google-voice')
-rw-r--r-- | recipes/google-voice/index.js | 2 | ||||
-rw-r--r-- | recipes/google-voice/package.json | 2 | ||||
-rw-r--r-- | recipes/google-voice/webview.js | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes/google-voice/index.js b/recipes/google-voice/index.js index 23607bd..dd41f72 100644 --- a/recipes/google-voice/index.js +++ b/recipes/google-voice/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/google-voice/package.json b/recipes/google-voice/package.json index 06a25b8..41322b4 100644 --- a/recipes/google-voice/package.json +++ b/recipes/google-voice/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "google-voice", | 2 | "id": "google-voice", |
3 | "name": "Google Voice", | 3 | "name": "Google Voice", |
4 | "version": "0.4.3", | 4 | "version": "0.5.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "repository": "https://github.com/BehindTheMath/franz-recipe-google-voice", | 6 | "repository": "https://github.com/BehindTheMath/franz-recipe-google-voice", |
7 | "config": { | 7 | "config": { |
diff --git a/recipes/google-voice/webview.js b/recipes/google-voice/webview.js index 8b2d2b3..876ec1d 100644 --- a/recipes/google-voice/webview.js +++ b/recipes/google-voice/webview.js | |||
@@ -1,7 +1,7 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | function parseQuery(query) { | 2 | function parseQuery(query) { |
3 | const el = document.querySelector(query); | 3 | const el = document.querySelector(query); |
4 | return el && Ferdi.safeParseInt(el.textContent); | 4 | return el && Ferdium.safeParseInt(el.textContent); |
5 | } | 5 | } |
6 | 6 | ||
7 | const getMessages = () => { | 7 | const getMessages = () => { |
@@ -9,7 +9,7 @@ module.exports = Ferdi => { | |||
9 | let count; | 9 | let count; |
10 | 10 | ||
11 | if (el && el.textContent) { | 11 | if (el && el.textContent) { |
12 | count = Ferdi.safeParseInt(el.textContent.replace(/[ ()]/gi, '')); | 12 | count = Ferdium.safeParseInt(el.textContent.replace(/[ ()]/gi, '')); |
13 | } else { | 13 | } else { |
14 | const count_messages = parseQuery( | 14 | const count_messages = parseQuery( |
15 | 'gv-nav-tab[tooltip="Messages"] div[aria-label="Unread count"]', | 15 | 'gv-nav-tab[tooltip="Messages"] div[aria-label="Unread count"]', |
@@ -23,8 +23,8 @@ module.exports = Ferdi => { | |||
23 | count = count_messages + count_calls + count_voicemails; | 23 | count = count_messages + count_calls + count_voicemails; |
24 | } | 24 | } |
25 | 25 | ||
26 | Ferdi.setBadge(count); | 26 | Ferdium.setBadge(count); |
27 | }; | 27 | }; |
28 | 28 | ||
29 | Ferdi.loop(getMessages); | 29 | Ferdium.loop(getMessages); |
30 | }; | 30 | }; |