diff options
Diffstat (limited to 'recipes/producthunt/webview.js')
-rw-r--r-- | recipes/producthunt/webview.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes/producthunt/webview.js b/recipes/producthunt/webview.js index 86cab43..afcdc3e 100644 --- a/recipes/producthunt/webview.js +++ b/recipes/producthunt/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 notificationsSelector = document.querySelector( | 8 | const notificationsSelector = document.querySelector( |
3 | '[class*=header_] [class*=content_] [class*=actions_] [class*=notificationsButton_]', | 9 | '[class*=header_] [class*=content_] [class*=actions_] [class*=notificationsButton_]', |
@@ -10,4 +16,6 @@ module.exports = Ferdium => { | |||
10 | }; | 16 | }; |
11 | 17 | ||
12 | Ferdium.loop(getMessages); | 18 | Ferdium.loop(getMessages); |
19 | |||
20 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
13 | }; | 21 | }; |