diff options
Diffstat (limited to 'recipes/xing/webview.js')
-rw-r--r-- | recipes/xing/webview.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/recipes/xing/webview.js b/recipes/xing/webview.js index 28d9265..cd84964 100644 --- a/recipes/xing/webview.js +++ b/recipes/xing/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 | function getUnreadConversations() { | 8 | function getUnreadConversations() { |
3 | Ferdium.setBadge(document.querySelector('#unread-conversations').textContent); | 9 | Ferdium.setBadge( |
10 | document.querySelector('#unread-conversations').textContent, | ||
11 | ); | ||
4 | } | 12 | } |
5 | 13 | ||
6 | Ferdium.loop(getUnreadConversations); | 14 | Ferdium.loop(getUnreadConversations); |
15 | |||
16 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
7 | }; | 17 | }; |