diff options
Diffstat (limited to 'recipes/flock/webview.js')
-rw-r--r-- | recipes/flock/webview.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/recipes/flock/webview.js b/recipes/flock/webview.js index 1a74734..8bcc61f 100644 --- a/recipes/flock/webview.js +++ b/recipes/flock/webview.js | |||
@@ -1,7 +1,17 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
1 | module.exports = Ferdium => { | 7 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 8 | const getMessages = () => { |
3 | const allMessages = Ferdium.safeParseInt(document.querySelector('.team-counter').textContent); | 9 | const allMessages = Ferdium.safeParseInt( |
10 | document.querySelector('.team-counter').textContent, | ||
11 | ); | ||
4 | Ferdium.setBadge(allMessages); | 12 | Ferdium.setBadge(allMessages); |
5 | }; | 13 | }; |
6 | Ferdium.loop(getMessages); | 14 | Ferdium.loop(getMessages); |
15 | |||
16 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
7 | }; | 17 | }; |