diff options
Diffstat (limited to 'recipes/intercom')
-rw-r--r-- | recipes/intercom/package.json | 2 | ||||
-rw-r--r-- | recipes/intercom/webview.js | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/recipes/intercom/package.json b/recipes/intercom/package.json index f863184..c483ae2 100644 --- a/recipes/intercom/package.json +++ b/recipes/intercom/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "intercom", | 2 | "id": "intercom", |
3 | "name": "Intercom", | 3 | "name": "Intercom", |
4 | "version": "1.2.0", | 4 | "version": "1.3.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://app.intercom.io/", | 7 | "serviceURL": "https://app.intercom.io/", |
diff --git a/recipes/intercom/webview.js b/recipes/intercom/webview.js index 69ba2f6..08225a8 100644 --- a/recipes/intercom/webview.js +++ b/recipes/intercom/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 numMessages = Ferdium.safeParseInt( | 9 | const numMessages = Ferdium.safeParseInt( |
@@ -9,4 +15,6 @@ module.exports = Ferdium => { | |||
9 | }; | 15 | }; |
10 | 16 | ||
11 | Ferdium.loop(getMessages); | 17 | Ferdium.loop(getMessages); |
18 | |||
19 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
12 | }; | 20 | }; |