diff options
Diffstat (limited to 'recipes/stride')
-rw-r--r-- | recipes/stride/package.json | 2 | ||||
-rw-r--r-- | recipes/stride/webview.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/stride/package.json b/recipes/stride/package.json index 0016f53..d3dcb60 100644 --- a/recipes/stride/package.json +++ b/recipes/stride/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "stride", | 2 | "id": "stride", |
3 | "name": "Stride", | 3 | "name": "Stride", |
4 | "version": "1.3.0", | 4 | "version": "1.3.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://app.stride.com", | 7 | "serviceURL": "https://app.stride.com", |
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++; |