diff options
Diffstat (limited to 'recipes/TickTick/webview.js')
-rw-r--r-- | recipes/TickTick/webview.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes/TickTick/webview.js b/recipes/TickTick/webview.js index d2c7ef5..35a8ff1 100644 --- a/recipes/TickTick/webview.js +++ b/recipes/TickTick/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 | // all overdue items are being counted | 9 | // all overdue items are being counted |
4 | const count = document.querySelectorAll('.duedate-overdue').length; | 10 | const count = document.querySelectorAll('.duedate-overdue').length; |
@@ -7,4 +13,6 @@ module.exports = (Ferdium) => { | |||
7 | }; | 13 | }; |
8 | 14 | ||
9 | Ferdium.loop(getMessages); | 15 | Ferdium.loop(getMessages); |
16 | |||
17 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
10 | }; | 18 | }; |