diff options
Diffstat (limited to 'recipes/nextcloud-calendar')
-rw-r--r-- | recipes/nextcloud-calendar/index.js | 2 | ||||
-rw-r--r-- | recipes/nextcloud-calendar/webview.js | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/recipes/nextcloud-calendar/index.js b/recipes/nextcloud-calendar/index.js index 6d140c6..ba017dc 100644 --- a/recipes/nextcloud-calendar/index.js +++ b/recipes/nextcloud-calendar/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/calendar/`; | 3 | return `${url}/apps/calendar/`; |
diff --git a/recipes/nextcloud-calendar/webview.js b/recipes/nextcloud-calendar/webview.js index e36a9d4..2affdbf 100644 --- a/recipes/nextcloud-calendar/webview.js +++ b/recipes/nextcloud-calendar/webview.js | |||
@@ -1,15 +1,13 @@ | |||
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 = Ferdi => { | 7 | module.exports = Ferdi => { |
10 | const getMessages = function getMessages() { | 8 | const getMessages = function getMessages() { |
11 | const direct = document.querySelectorAll( | 9 | const direct = document.querySelectorAll( |
12 | '.notifications .notification-wrapper .notification[object_type="dav"]' | 10 | '.notifications .notification-wrapper .notification[object_type="dav"]', |
13 | ).length; | 11 | ).length; |
14 | 12 | ||
15 | Ferdi.setBadge(direct); | 13 | Ferdi.setBadge(direct); |