diff options
Diffstat (limited to 'recipes/hipchat')
-rw-r--r-- | recipes/hipchat/index.js | 2 | ||||
-rw-r--r-- | recipes/hipchat/package.json | 2 | ||||
-rw-r--r-- | recipes/hipchat/webview.js | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/hipchat/index.js b/recipes/hipchat/index.js index 0a461ab..ce3256b 100644 --- a/recipes/hipchat/index.js +++ b/recipes/hipchat/index.js | |||
@@ -1,6 +1,6 @@ | |||
1 | function _asyncToGenerator(fn) { return function () { const gen = Reflect.apply(fn, this, arguments); return new Promise((resolve, reject) => { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then((value) => { step('next', value); }, (error) => { step('throw', error); }); } } return step('next'); }); }; } | 1 | function _asyncToGenerator(fn) { return function () { const gen = Reflect.apply(fn, this, arguments); return new Promise((resolve, reject) => { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then((value) => { step('next', value); }, (error) => { step('throw', error); }); } } return step('next'); }); }; } |
2 | 2 | ||
3 | module.exports = Ferdi => class HipChat extends Ferdi { | 3 | module.exports = Ferdium => class HipChat extends Ferdium { |
4 | validateUrl(url) { | 4 | validateUrl(url) { |
5 | return _asyncToGenerator(function* () { | 5 | return _asyncToGenerator(function* () { |
6 | try { | 6 | try { |
diff --git a/recipes/hipchat/package.json b/recipes/hipchat/package.json index b0437f6..0be97cc 100644 --- a/recipes/hipchat/package.json +++ b/recipes/hipchat/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "hipchat", | 2 | "id": "hipchat", |
3 | "name": "HipChat", | 3 | "name": "HipChat", |
4 | "version": "1.1.1", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://{teamId}.hipchat.com/chat", | 7 | "serviceURL": "https://{teamId}.hipchat.com/chat", |
diff --git a/recipes/hipchat/webview.js b/recipes/hipchat/webview.js index 8748926..229b376 100644 --- a/recipes/hipchat/webview.js +++ b/recipes/hipchat/webview.js | |||
@@ -1,11 +1,11 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | const directMessages = document.querySelectorAll('.hc-mention').length; | 3 | const directMessages = document.querySelectorAll('.hc-mention').length; |
4 | const allMessages = document.querySelectorAll('.aui-badge:not(.hc-mention)').length - directMessages; | 4 | const allMessages = document.querySelectorAll('.aui-badge:not(.hc-mention)').length - directMessages; |
5 | 5 | ||
6 | // set Ferdi badge | 6 | // set Ferdium badge |
7 | Ferdi.setBadge(directMessages, allMessages); | 7 | Ferdium.setBadge(directMessages, allMessages); |
8 | }; | 8 | }; |
9 | 9 | ||
10 | Ferdi.loop(getMessages); | 10 | Ferdium.loop(getMessages); |
11 | }; | 11 | }; |