diff options
Diffstat (limited to 'recipes/mailbox.org/webview.js')
-rw-r--r-- | recipes/mailbox.org/webview.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes/mailbox.org/webview.js b/recipes/mailbox.org/webview.js index 68ab707..889f6c4 100644 --- a/recipes/mailbox.org/webview.js +++ b/recipes/mailbox.org/webview.js | |||
@@ -1,4 +1,10 @@ | |||
1 | module.exports = (Ferdium) => { | 1 | function _interopRequireDefault(obj) { |
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
7 | module.exports = Ferdium => { | ||
2 | const getMessages = () => { | 8 | const getMessages = () => { |
3 | const count = document.querySelectorAll('.new-item').length; | 9 | const count = document.querySelectorAll('.new-item').length; |
4 | 10 | ||
@@ -6,4 +12,6 @@ module.exports = (Ferdium) => { | |||
6 | }; | 12 | }; |
7 | 13 | ||
8 | Ferdium.loop(getMessages); | 14 | Ferdium.loop(getMessages); |
15 | |||
16 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
9 | }; | 17 | }; |