diff options
Diffstat (limited to 'recipes/stride/webview.js')
-rw-r--r-- | recipes/stride/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/stride/webview.js b/recipes/stride/webview.js index 08114c1..3ab132d 100644 --- a/recipes/stride/webview.js +++ b/recipes/stride/webview.js | |||
@@ -11,9 +11,9 @@ module.exports = Ferdium => { | |||
11 | 11 | ||
12 | // get unread direct messages by tring to read the badge values | 12 | // get unread direct messages by tring to read the badge values |
13 | for (const item of allBadges) { | 13 | for (const item of allBadges) { |
14 | if (item.hasAttribute('data-count')) { | 14 | if (item.dataset.count) { |
15 | // Count for DMs should be in the data-count attribute | 15 | // Count for DMs should be in the data-count attribute |
16 | directCount += Math.max(1, +item.getAttribute('data-count')); | 16 | directCount += Math.max(1, +item.dataset.count); |
17 | } else { | 17 | } else { |
18 | // this will be the case for indirect messages | 18 | // this will be the case for indirect messages |
19 | indirectCount++; | 19 | indirectCount++; |