diff options
Diffstat (limited to 'recipes/chatra')
-rw-r--r-- | recipes/chatra/index.js | 2 | ||||
-rw-r--r-- | recipes/chatra/package.json | 2 | ||||
-rw-r--r-- | recipes/chatra/webview.js | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/chatra/index.js b/recipes/chatra/index.js index 23607bd..dd41f72 100644 --- a/recipes/chatra/index.js +++ b/recipes/chatra/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/chatra/package.json b/recipes/chatra/package.json index ecca6aa..22fa8c0 100644 --- a/recipes/chatra/package.json +++ b/recipes/chatra/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "chatra", | 2 | "id": "chatra", |
3 | "name": "Chatra", | 3 | "name": "Chatra", |
4 | "version": "1.1.2", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://app.chatra.io/", | 7 | "serviceURL": "https://app.chatra.io/", |
diff --git a/recipes/chatra/webview.js b/recipes/chatra/webview.js index a82a78d..c1e6b7f 100644 --- a/recipes/chatra/webview.js +++ b/recipes/chatra/webview.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = (Ferdi) => { | 1 | module.exports = (Ferdium) => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | // get new conversations in My Queue | 3 | // get new conversations in My Queue |
4 | const myQueue = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:my"] .count').not('.count--gray').text(); | 4 | const myQueue = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:my"] .count').not('.count--gray').text(); |
@@ -6,11 +6,11 @@ module.exports = (Ferdi) => { | |||
6 | // get all missed conversations | 6 | // get all missed conversations |
7 | const missed = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:missed"] .count').text(); | 7 | const missed = $('.super-nav a.super-nav__item.js-from-super-to-nav[href^="/chat/box:missed"] .count').text(); |
8 | 8 | ||
9 | // set Ferdi badge | 9 | // set Ferdium badge |
10 | // myQueue => New conversations in My Queue | 10 | // myQueue => New conversations in My Queue |
11 | // missed => All missed conversations | 11 | // missed => All missed conversations |
12 | Ferdi.setBadge(myQueue, missed); | 12 | Ferdium.setBadge(myQueue, missed); |
13 | }; | 13 | }; |
14 | 14 | ||
15 | Ferdi.loop(getMessages); | 15 | Ferdium.loop(getMessages); |
16 | }; | 16 | }; |