diff options
author | 2023-02-13 06:44:28 +0530 | |
---|---|---|
committer | 2023-02-13 06:49:51 +0530 | |
commit | d8399ea0f1940d6483bfef59e3eb94ba41137b12 (patch) | |
tree | e9b58bcbb46c21784ed46b20d5c8481828deb39a /recipes/stride/webview.js | |
parent | fix #936: Rectify serviceUrls for known problematic services (diff) | |
download | ferdium-recipes-d8399ea0f1940d6483bfef59e3eb94ba41137b12.tar.gz ferdium-recipes-d8399ea0f1940d6483bfef59e3eb94ba41137b12.tar.zst ferdium-recipes-d8399ea0f1940d6483bfef59e3eb94ba41137b12.zip |
Upgrade 'pnpm' to '7.27.0'; Upgrade other npm modules and fix errors
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++; |