diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/nextcloud-talk/webview.js | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip |
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/nextcloud-talk/webview.js')
-rw-r--r-- | recipes/nextcloud-talk/webview.js | 12 |
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 | ||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | 4 | ||
5 | module.exports = Ferdi => { | 5 | module.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 | }; |