diff options
Diffstat (limited to 'recipes/asana')
-rw-r--r-- | recipes/asana/package.json | 2 | ||||
-rw-r--r-- | recipes/asana/webview.js | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/recipes/asana/package.json b/recipes/asana/package.json index ebe4ce6..70b42b5 100644 --- a/recipes/asana/package.json +++ b/recipes/asana/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "asana", | 2 | "id": "asana", |
3 | "name": "Asana", | 3 | "name": "Asana", |
4 | "version": "1.2.0", | 4 | "version": "1.3.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://app.asana.com", | 7 | "serviceURL": "https://app.asana.com", |
diff --git a/recipes/asana/webview.js b/recipes/asana/webview.js index 8a34c24..b1938ad 100644 --- a/recipes/asana/webview.js +++ b/recipes/asana/webview.js | |||
@@ -1,10 +1,14 @@ | |||
1 | const _path = _interopRequireDefault(require('path')); | 1 | function _interopRequireDefault(obj) { |
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
2 | 4 | ||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 5 | const _path = _interopRequireDefault(require('path')); |
4 | 6 | ||
5 | module.exports = Ferdium => { | 7 | module.exports = Ferdium => { |
6 | const getMessages = () => { | 8 | const getMessages = () => { |
7 | const hasNotification = document.querySelectorAll('.SidebarTopNavLinks-notificationsButton--hasNewNotifications'); | 9 | const hasNotification = document.querySelectorAll( |
10 | '.SidebarTopNavLinks-notificationsButton--hasNewNotifications', | ||
11 | ); | ||
8 | Ferdium.setBadge(hasNotification.length > 0 ? 1 : 0); | 12 | Ferdium.setBadge(hasNotification.length > 0 ? 1 : 0); |
9 | }; | 13 | }; |
10 | 14 | ||