diff options
Diffstat (limited to 'recipes/whereby/webview.js')
-rw-r--r-- | recipes/whereby/webview.js | 14 |
1 files changed, 7 insertions, 7 deletions
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 | }; |