diff options
Diffstat (limited to 'recipes/nextcloud')
-rw-r--r-- | recipes/nextcloud/index.js | 2 | ||||
-rw-r--r-- | recipes/nextcloud/package.json | 2 | ||||
-rw-r--r-- | recipes/nextcloud/webview.js | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/recipes/nextcloud/index.js b/recipes/nextcloud/index.js index 66d3347..4618097 100644 --- a/recipes/nextcloud/index.js +++ b/recipes/nextcloud/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}/`; | 3 | return `${url}/`; |
4 | } | 4 | } |
diff --git a/recipes/nextcloud/package.json b/recipes/nextcloud/package.json index 409ebc9..de475f6 100644 --- a/recipes/nextcloud/package.json +++ b/recipes/nextcloud/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "nextcloud", | 2 | "id": "nextcloud", |
3 | "name": "Nextcloud", | 3 | "name": "Nextcloud", |
4 | "version": "1.1.1", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "repository": "https://github.com/eandersons/ferdi-recipe-nextcloud", | 6 | "repository": "https://github.com/eandersons/ferdi-recipe-nextcloud", |
7 | "config": { | 7 | "config": { |
diff --git a/recipes/nextcloud/webview.js b/recipes/nextcloud/webview.js index 9072ecf..786f7a8 100644 --- a/recipes/nextcloud/webview.js +++ b/recipes/nextcloud/webview.js | |||
@@ -1,11 +1,11 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | const direct = document.querySelectorAll( | 3 | const direct = document.querySelectorAll( |
4 | '.notifications .notification-container .notification-wrapper li .notification', | 4 | '.notifications .notification-container .notification-wrapper li .notification', |
5 | ).length; | 5 | ).length; |
6 | 6 | ||
7 | Ferdi.setBadge(direct); | 7 | Ferdium.setBadge(direct); |
8 | }; | 8 | }; |
9 | 9 | ||
10 | Ferdi.loop(getMessages); | 10 | Ferdium.loop(getMessages); |
11 | }; | 11 | }; |