diff options
Diffstat (limited to 'recipes/whereby')
-rw-r--r-- | recipes/whereby/index.js | 2 | ||||
-rw-r--r-- | recipes/whereby/package.json | 2 | ||||
-rw-r--r-- | recipes/whereby/webview.js | 14 |
3 files changed, 9 insertions, 9 deletions
diff --git a/recipes/whereby/index.js b/recipes/whereby/index.js index 23607bd..dd41f72 100644 --- a/recipes/whereby/index.js +++ b/recipes/whereby/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/whereby/package.json b/recipes/whereby/package.json index 6b3610d..3eb3668 100644 --- a/recipes/whereby/package.json +++ b/recipes/whereby/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "whereby", | 2 | "id": "whereby", |
3 | "name": "Whereby", | 3 | "name": "Whereby", |
4 | "version": "1.0.2", | 4 | "version": "1.1.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://whereby.com/{teamId}", | 7 | "serviceURL": "https://whereby.com/{teamId}", |
diff --git a/recipes/whereby/webview.js b/recipes/whereby/webview.js index eb751a5..6e64c6f 100644 --- a/recipes/whereby/webview.js +++ b/recipes/whereby/webview.js | |||
@@ -2,7 +2,7 @@ var _path = _interopRequireDefault(require('path')); | |||
2 | 2 | ||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | 4 | ||
5 | module.exports = Ferdi => { | 5 | module.exports = Ferdium => { |
6 | const getMessages = () => { | 6 | const getMessages = () => { |
7 | const elements = document.querySelectorAll('.CxUIE, .unread'); | 7 | const elements = document.querySelectorAll('.CxUIE, .unread'); |
8 | let count = 0; | 8 | let count = 0; |
@@ -13,13 +13,13 @@ module.exports = Ferdi => { | |||
13 | } | 13 | } |
14 | } | 14 | } |
15 | 15 | ||
16 | // set Ferdi badge | 16 | // set Ferdium badge |
17 | Ferdi.setBadge(count); | 17 | Ferdium.setBadge(count); |
18 | }; | 18 | }; |
19 | 19 | ||
20 | // check for new messages every second and update Ferdi badge | 20 | // check for new messages every second and update Ferdium badge |
21 | Ferdi.loop(getMessages); | 21 | Ferdium.loop(getMessages); |
22 | 22 | ||
23 | // inject Ferdi.css stylesheet | 23 | // inject Ferdium.css stylesheet |
24 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 24 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
25 | }; | 25 | }; |