diff options
Diffstat (limited to 'recipes/xing')
-rw-r--r-- | recipes/xing/package.json | 2 | ||||
-rw-r--r-- | recipes/xing/webview.js | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/recipes/xing/package.json b/recipes/xing/package.json index 867e47e..ecc0f7c 100644 --- a/recipes/xing/package.json +++ b/recipes/xing/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "xing", | 2 | "id": "xing", |
3 | "name": "XING", | 3 | "name": "XING", |
4 | "version": "1.3.0", | 4 | "version": "1.4.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://www.xing.com/messenger/global" | 7 | "serviceURL": "https://www.xing.com/messenger/global" |
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 | }; |