diff options
Diffstat (limited to 'recipes/stackoverflow-chat')
-rw-r--r-- | recipes/stackoverflow-chat/package.json | 2 | ||||
-rw-r--r-- | recipes/stackoverflow-chat/webview.js | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/recipes/stackoverflow-chat/package.json b/recipes/stackoverflow-chat/package.json index a291593..14ff835 100644 --- a/recipes/stackoverflow-chat/package.json +++ b/recipes/stackoverflow-chat/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "stackoverflow-chat", | 2 | "id": "stackoverflow-chat", |
3 | "name": "Stack Overflow Chat", | 3 | "name": "Stack Overflow Chat", |
4 | "version": "1.1.0", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://chat.stackoverflow.com/", | 7 | "serviceURL": "https://chat.stackoverflow.com/", |
diff --git a/recipes/stackoverflow-chat/webview.js b/recipes/stackoverflow-chat/webview.js index aa5bde6..c600a65 100644 --- a/recipes/stackoverflow-chat/webview.js +++ b/recipes/stackoverflow-chat/webview.js | |||
@@ -1,3 +1,9 @@ | |||
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 unreadSpan = document.querySelector( | 9 | const unreadSpan = document.querySelector( |
@@ -10,4 +16,6 @@ module.exports = Ferdium => { | |||
10 | Ferdium.setBadge(directCount); | 16 | Ferdium.setBadge(directCount); |
11 | }; | 17 | }; |
12 | Ferdium.loop(getMessages); | 18 | Ferdium.loop(getMessages); |
19 | |||
20 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
13 | }; | 21 | }; |