diff options
Diffstat (limited to 'recipes/meetup')
-rw-r--r-- | recipes/meetup/package.json | 2 | ||||
-rw-r--r-- | recipes/meetup/webview.js | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/recipes/meetup/package.json b/recipes/meetup/package.json index 42afa9b..468d800 100644 --- a/recipes/meetup/package.json +++ b/recipes/meetup/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "meetup", | 2 | "id": "meetup", |
3 | "name": "Meetup", | 3 | "name": "Meetup", |
4 | "version": "1.1.0", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://meetup.com", | 7 | "serviceURL": "https://meetup.com", |
diff --git a/recipes/meetup/webview.js b/recipes/meetup/webview.js index 1ddb5fd..a5c7a88 100644 --- a/recipes/meetup/webview.js +++ b/recipes/meetup/webview.js | |||
@@ -1,8 +1,16 @@ | |||
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 hasNotifications = document.querySelector(".counterBadge"); | 9 | const hasNotifications = document.querySelector('.counterBadge'); |
4 | 10 | ||
5 | Ferdium.setBadge(0, hasNotifications ? 1 : 0); | 11 | Ferdium.setBadge(0, hasNotifications ? 1 : 0); |
6 | }; | 12 | }; |
7 | Ferdium.loop(getMessages); | 13 | Ferdium.loop(getMessages); |
14 | |||
15 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
8 | }; | 16 | }; |