aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nextcloud-talk/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/nextcloud-talk/webview.js')
-rw-r--r--recipes/nextcloud-talk/webview.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes/nextcloud-talk/webview.js b/recipes/nextcloud-talk/webview.js
index 5e28853..96681f6 100644
--- a/recipes/nextcloud-talk/webview.js
+++ b/recipes/nextcloud-talk/webview.js
@@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path'));
2 2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4 4
5module.exports = Ferdi => { 5module.exports = Ferdium => {
6 const getMessages = () => { 6 const getMessages = () => {
7 let direct = 0; 7 let direct = 0;
8 const notificationWrapper = document.querySelector( 8 const notificationWrapper = document.querySelector(
@@ -20,15 +20,15 @@ module.exports = Ferdi => {
20 for (const counter of document.querySelectorAll('.app-navigation-entry__counter')) { 20 for (const counter of document.querySelectorAll('.app-navigation-entry__counter')) {
21 indirect += Number(counter.textContent); 21 indirect += Number(counter.textContent);
22 } 22 }
23 23
24 if (document.title.startsWith("*")) { 24 if (document.title.startsWith("*")) {
25 indirect++; 25 indirect++;
26 } 26 }
27 27
28 Ferdi.setBadge(direct, indirect); 28 Ferdium.setBadge(direct, indirect);
29 }; 29 };
30 30
31 Ferdi.loop(getMessages); 31 Ferdium.loop(getMessages);
32 32
33 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); 33 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
34}; 34};