aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Edgars <Edgars+GitHub@gaitenis.id.lv>2022-11-30 10:13:27 +0200
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-11-30 19:24:10 +0530
commitff551ee3375f35335f30c8bc8c6c5b7645d12cfe (patch)
tree29bc39b4164fd0c497c56b2f81a11e6909d87d82 /recipes
parentfix: whatsapp not in fullscreen (diff)
downloadferdium-recipes-ff551ee3375f35335f30c8bc8c6c5b7645d12cfe.tar.gz
ferdium-recipes-ff551ee3375f35335f30c8bc8c6c5b7645d12cfe.tar.zst
ferdium-recipes-ff551ee3375f35335f30c8bc8c6c5b7645d12cfe.zip
Fix notifications count for Nextcloud 25
Diffstat (limited to 'recipes')
-rw-r--r--recipes/nextcloud/package.json3
-rw-r--r--recipes/nextcloud/webview.js6
2 files changed, 5 insertions, 4 deletions
diff --git a/recipes/nextcloud/package.json b/recipes/nextcloud/package.json
index de475f6..239cd6b 100644
--- a/recipes/nextcloud/package.json
+++ b/recipes/nextcloud/package.json
@@ -1,9 +1,8 @@
1{ 1{
2 "id": "nextcloud", 2 "id": "nextcloud",
3 "name": "Nextcloud", 3 "name": "Nextcloud",
4 "version": "1.2.0", 4 "version": "1.2.1",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/eandersons/ferdi-recipe-nextcloud",
7 "config": { 6 "config": {
8 "hasNotificationSound": true, 7 "hasNotificationSound": true,
9 "hasIndirectMessages": true, 8 "hasIndirectMessages": true,
diff --git a/recipes/nextcloud/webview.js b/recipes/nextcloud/webview.js
index 786f7a8..cb13e02 100644
--- a/recipes/nextcloud/webview.js
+++ b/recipes/nextcloud/webview.js
@@ -1,7 +1,9 @@
1module.exports = Ferdium => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 const direct = document.querySelectorAll( 3 const direct = document.querySelector(
4 '.notifications .notification-container .notification-wrapper li .notification', 4 '#header-menu-notifications, .notifications'
5 ).querySelectorAll(
6 '.notification-container .notification-wrapper .notification'
5 ).length; 7 ).length;
6 8
7 Ferdium.setBadge(direct); 9 Ferdium.setBadge(direct);