diff options
Diffstat (limited to 'recipes/element')
-rw-r--r-- | recipes/element/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/element/webview.js b/recipes/element/webview.js index aab6038..7ccf97b 100644 --- a/recipes/element/webview.js +++ b/recipes/element/webview.js | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | module.exports = Franz => { | 3 | module.exports = Franz => { |
4 | function getMessages() { | 4 | function getMessages() { |
5 | const badges = document.getElementsByClassName('mx_RoomSublist_badgeContainer'); | 5 | const badges = document.querySelectorAll('.mx_RoomSublist:not(.mx_RoomSublist_hidden) .mx_RoomSublist_badgeContainer'); |
6 | 6 | ||
7 | // Number of messages from People | 7 | // Number of messages from People |
8 | let direct_count = 0; | 8 | let direct_count = 0; |