diff options
Diffstat (limited to 'recipes/nextcloud/webview.js')
-rw-r--r-- | recipes/nextcloud/webview.js | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ | |||
1 | module.exports = Ferdium => { | 1 | module.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); |