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.js13
1 files changed, 5 insertions, 8 deletions
diff --git a/recipes/nextcloud-calendar/webview.js b/recipes/nextcloud-calendar/webview.js
index 53496fe..e36a9d4 100644
--- a/recipes/nextcloud-calendar/webview.js
+++ b/recipes/nextcloud-calendar/webview.js
@@ -6,18 +6,15 @@ function _interopRequireDefault(obj) {
6 return obj && obj.__esModule ? obj : {default: obj}; 6 return obj && obj.__esModule ? obj : {default: obj};
7} 7}
8 8
9module.exports = Franz => { 9module.exports = Ferdi => {
10 const getMessages = function getMessages() { 10 const getMessages = function getMessages() {
11 const direct = document.querySelectorAll( 11 const direct = document.querySelectorAll(
12 '.app-navigation-entry-utils-counter.highlighted' 12 '.notifications .notification-wrapper .notification[object_type="dav"]'
13 ).length;
14 const indirect = document.querySelectorAll(
15 '.app-navigation-entry-utils-counter:not(.highlighted)'
16 ).length; 13 ).length;
17 14
18 Franz.setBadge(direct, indirect); 15 Ferdi.setBadge(direct);
19 }; 16 };
20 17
21 Franz.loop(getMessages); 18 Ferdi.loop(getMessages);
22 Franz.injectCSS(_path.default.join(__dirname, 'service.css')); 19 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
23}; 20};