aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nextcloud-cospend/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/nextcloud-cospend/webview.js')
-rw-r--r--recipes/nextcloud-cospend/webview.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/recipes/nextcloud-cospend/webview.js b/recipes/nextcloud-cospend/webview.js
index 53496fe..ab6d5f9 100644
--- a/recipes/nextcloud-cospend/webview.js
+++ b/recipes/nextcloud-cospend/webview.js
@@ -1,18 +1,16 @@
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 = Franz => { 7module.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);