From d8399ea0f1940d6483bfef59e3eb94ba41137b12 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 13 Feb 2023 06:44:28 +0530 Subject: Upgrade 'pnpm' to '7.27.0'; Upgrade other npm modules and fix errors --- recipes/hey/package.json | 2 +- recipes/hey/webview.js | 2 +- recipes/stride/package.json | 2 +- recipes/stride/webview.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes') diff --git a/recipes/hey/package.json b/recipes/hey/package.json index e3bc1e2..090dbaa 100644 --- a/recipes/hey/package.json +++ b/recipes/hey/package.json @@ -1,7 +1,7 @@ { "id": "hey", "name": "Hey", - "version": "1.1.0", + "version": "1.1.1", "repository": "https://github.com/cpwood/recipe-hey", "config": { "serviceURL": "https://app.hey.com", diff --git a/recipes/hey/webview.js b/recipes/hey/webview.js index d92490b..d0b885a 100644 --- a/recipes/hey/webview.js +++ b/recipes/hey/webview.js @@ -19,7 +19,7 @@ module.exports = Ferdium => { for (const p of postings) { if ( p.nodeName == 'ARTICLE' && - p.getAttribute('data-seen') !== 'true' + p.dataset.seen !== 'true' ) { unread++; } 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 @@ { "id": "stride", "name": "Stride", - "version": "1.3.0", + "version": "1.3.1", "license": "MIT", "config": { "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 => { // get unread direct messages by tring to read the badge values for (const item of allBadges) { - if (item.hasAttribute('data-count')) { + if (item.dataset.count) { // Count for DMs should be in the data-count attribute - directCount += Math.max(1, +item.getAttribute('data-count')); + directCount += Math.max(1, +item.dataset.count); } else { // this will be the case for indirect messages indirectCount++; -- cgit v1.2.3-54-g00ecf