diff options
Diffstat (limited to 'uncompressed/nextcloud-talk/webview.js')
-rw-r--r-- | uncompressed/nextcloud-talk/webview.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/uncompressed/nextcloud-talk/webview.js b/uncompressed/nextcloud-talk/webview.js new file mode 100644 index 0000000..ae055f0 --- /dev/null +++ b/uncompressed/nextcloud-talk/webview.js | |||
@@ -0,0 +1,16 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | |||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
6 | |||
7 | module.exports = Franz => { | ||
8 | const getMessages = function getMessages() { | ||
9 | const direct = document.querySelectorAll('.app-navigation-entry-utils-counter.highlighted').length; | ||
10 | const indirect = document.querySelectorAll('.app-navigation-entry-utils-counter:not(.highlighted)').length; | ||
11 | Franz.setBadge(direct, indirect); | ||
12 | }; | ||
13 | |||
14 | Franz.loop(getMessages); | ||
15 | Franz.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
16 | }; \ No newline at end of file | ||