diff options
Diffstat (limited to 'recipes/nextcloud-tasks')
-rw-r--r-- | recipes/nextcloud-tasks/index.js | 2 | ||||
-rw-r--r-- | recipes/nextcloud-tasks/webview.js | 10 |
2 files changed, 4 insertions, 8 deletions
diff --git a/recipes/nextcloud-tasks/index.js b/recipes/nextcloud-tasks/index.js index 9e4a4e7..caaecd3 100644 --- a/recipes/nextcloud-tasks/index.js +++ b/recipes/nextcloud-tasks/index.js | |||
@@ -1,5 +1,3 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => class NextcloudCarnet extends Franz { | 1 | module.exports = Franz => class NextcloudCarnet extends Franz { |
4 | buildUrl(url) { | 2 | buildUrl(url) { |
5 | return `${url}/apps/tasks/`; | 3 | return `${url}/apps/tasks/`; |
diff --git a/recipes/nextcloud-tasks/webview.js b/recipes/nextcloud-tasks/webview.js index 53496fe..ab6d5f9 100644 --- a/recipes/nextcloud-tasks/webview.js +++ b/recipes/nextcloud-tasks/webview.js | |||
@@ -1,18 +1,16 @@ | |||
1 | "use strict"; | 1 | const _path = _interopRequireDefault(require('path')); |
2 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | 2 | ||
5 | function _interopRequireDefault(obj) { | 3 | function _interopRequireDefault(obj) { |
6 | return obj && obj.__esModule ? obj : {default: obj}; | 4 | return obj && obj.__esModule ? obj : { default: obj }; |
7 | } | 5 | } |
8 | 6 | ||
9 | module.exports = Franz => { | 7 | module.exports = Franz => { |
10 | const getMessages = function getMessages() { | 8 | const getMessages = function getMessages() { |
11 | const direct = document.querySelectorAll( | 9 | const direct = document.querySelectorAll( |
12 | '.app-navigation-entry-utils-counter.highlighted' | 10 | '.app-navigation-entry-utils-counter.highlighted', |
13 | ).length; | 11 | ).length; |
14 | const indirect = document.querySelectorAll( | 12 | const indirect = document.querySelectorAll( |
15 | '.app-navigation-entry-utils-counter:not(.highlighted)' | 13 | '.app-navigation-entry-utils-counter:not(.highlighted)', |
16 | ).length; | 14 | ).length; |
17 | 15 | ||
18 | Franz.setBadge(direct, indirect); | 16 | Franz.setBadge(direct, indirect); |