aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nomadlist/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/nomadlist/webview.js')
-rw-r--r--recipes/nomadlist/webview.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes/nomadlist/webview.js b/recipes/nomadlist/webview.js
index f737e2e..a9524f8 100644
--- a/recipes/nomadlist/webview.js
+++ b/recipes/nomadlist/webview.js
@@ -1,7 +1,15 @@
1module.exports = (Ferdium) => { 1function _interopRequireDefault(obj) {
2 return obj && obj.__esModule ? obj : { default: obj };
3}
4
5const _path = _interopRequireDefault(require('path'));
6
7module.exports = Ferdium => {
2 const getMessages = () => { 8 const getMessages = () => {
3 Ferdium.setBadge($('.unread').length); 9 Ferdium.setBadge($('.unread').length);
4 }; 10 };
5 11
6 Ferdium.loop(getMessages); 12 Ferdium.loop(getMessages);
13
14 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
7}; 15};