From 18801ed0c02627e87639dc0848cab44dacc18be2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 18 Apr 2022 06:51:50 -0500 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/nextcloud-talk/index.js | 2 +- recipes/nextcloud-talk/package.json | 2 +- recipes/nextcloud-talk/webview.js | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'recipes/nextcloud-talk') 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 @@ -module.exports = Ferdi => class Nextcloud extends Ferdi { +module.exports = Ferdium => class Nextcloud extends Ferdium { buildUrl(url) { return `${url}/apps/spreed/`; } 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 @@ { "id": "nextcloud-talk", "name": "Nextcloud Talk", - "version": "1.2.0", + "version": "1.3.0", "license": "MIT", "config": { "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')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { let direct = 0; const notificationWrapper = document.querySelector( @@ -20,15 +20,15 @@ module.exports = Ferdi => { for (const counter of document.querySelectorAll('.app-navigation-entry__counter')) { indirect += Number(counter.textContent); } - + if (document.title.startsWith("*")) { indirect++; } - - Ferdi.setBadge(direct, indirect); + + Ferdium.setBadge(direct, indirect); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); - Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); }; -- cgit v1.2.3-70-g09d2