aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nextcloud-calendar/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/nextcloud-calendar/webview.js')
-rw-r--r--recipes/nextcloud-calendar/webview.js8
1 files changed, 3 insertions, 5 deletions
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"; 1const _path = _interopRequireDefault(require('path'));
2
3var _path = _interopRequireDefault(require("path"));
4 2
5function _interopRequireDefault(obj) { 3function _interopRequireDefault(obj) {
6 return obj && obj.__esModule ? obj : {default: obj}; 4 return obj && obj.__esModule ? obj : { default: obj };
7} 5}
8 6
9module.exports = Ferdi => { 7module.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);