diff options
Diffstat (limited to 'recipes/nextcloud-talk')
-rw-r--r-- | recipes/nextcloud-talk/index.js | 2 | ||||
-rw-r--r-- | recipes/nextcloud-talk/package.json | 2 | ||||
-rw-r--r-- | recipes/nextcloud-talk/webview.js | 12 |
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 @@ | |||
1 | module.exports = Ferdi => class Nextcloud extends Ferdi { | 1 | module.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 | ||
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 | }; |