aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nextcloud-talk
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/nextcloud-talk
parentRemove deprecated webPreference flag (diff)
downloadferdium-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')
-rw-r--r--recipes/nextcloud-talk/index.js2
-rw-r--r--recipes/nextcloud-talk/package.json2
-rw-r--r--recipes/nextcloud-talk/webview.js12
3 files changed, 8 insertions, 8 deletions
diff --git a/recipes/nextcloud-talk/index.js b/recipes/nextcloud-talk/index.js
index 5cd6acb..8b520e9 100644
--- a/recipes/nextcloud-talk/index.js
+++ b/recipes/nextcloud-talk/index.js
@@ -1,4 +1,4 @@
1module.exports = Ferdi => class Nextcloud extends Ferdi { 1module.exports = Ferdium => class Nextcloud extends Ferdium {
2 buildUrl(url) { 2 buildUrl(url) {
3 return `${url}/apps/spreed/`; 3 return `${url}/apps/spreed/`;
4 } 4 }
diff --git a/recipes/nextcloud-talk/package.json b/recipes/nextcloud-talk/package.json
index 7120673..9933228 100644
--- a/recipes/nextcloud-talk/package.json
+++ b/recipes/nextcloud-talk/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "nextcloud-talk", 2 "id": "nextcloud-talk",
3 "name": "Nextcloud Talk", 3 "name": "Nextcloud Talk",
4 "version": "1.2.0", 4 "version": "1.3.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "hasNotificationSound": true, 7 "hasNotificationSound": true,
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};