diff options
author | 2019-12-11 11:35:39 +0100 | |
---|---|---|
committer | 2019-12-11 11:35:39 +0100 | |
commit | 2491ea3c11de71391cd333cfc375576232d64cba (patch) | |
tree | cfc7b178be929d59ae75ae6ff419b3c11b3474a2 /uncompressed/nextcloud-talk/webview.js | |
parent | Fix update error (diff) | |
download | ferdium-recipes-2491ea3c11de71391cd333cfc375576232d64cba.tar.gz ferdium-recipes-2491ea3c11de71391cd333cfc375576232d64cba.tar.zst ferdium-recipes-2491ea3c11de71391cd333cfc375576232d64cba.zip |
Update packages
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 | ||