diff options
-rw-r--r-- | all.json | 2 | ||||
-rw-r--r-- | recipes/good-reads/package.json | 2 | ||||
-rw-r--r-- | recipes/good-reads/webview.js | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -553,7 +553,7 @@ | |||
553 | "featured": false, | 553 | "featured": false, |
554 | "id": "good-reads", | 554 | "id": "good-reads", |
555 | "name": "Good Reads", | 555 | "name": "Good Reads", |
556 | "version": "1.0.1", | 556 | "version": "1.0.2", |
557 | "icons": { | 557 | "icons": { |
558 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/good-reads/icon.svg" | 558 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/good-reads/icon.svg" |
559 | } | 559 | } |
diff --git a/recipes/good-reads/package.json b/recipes/good-reads/package.json index 7e68582..d581b4f 100644 --- a/recipes/good-reads/package.json +++ b/recipes/good-reads/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "good-reads", | 2 | "id": "good-reads", |
3 | "name": "Good Reads", | 3 | "name": "Good Reads", |
4 | "version": "1.0.1", | 4 | "version": "1.0.2", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://www.goodreads.com/" | 7 | "serviceURL": "https://www.goodreads.com/" |
diff --git a/recipes/good-reads/webview.js b/recipes/good-reads/webview.js index 7fa5867..c1eabf8 100644 --- a/recipes/good-reads/webview.js +++ b/recipes/good-reads/webview.js | |||
@@ -4,7 +4,7 @@ module.exports = (Ferdi) => { | |||
4 | ".siteHeader__topLevelItem--profileIcon .headerPersonalNav .modalTrigger .headerPersonalNav__icon .headerPersonalNav__flag" | 4 | ".siteHeader__topLevelItem--profileIcon .headerPersonalNav .modalTrigger .headerPersonalNav__icon .headerPersonalNav__flag" |
5 | ); | 5 | ); |
6 | let notification = notificationBadge | 6 | let notification = notificationBadge |
7 | ? Number.parseInt(notificationBadge.textContent) | 7 | ? Ferdi.safeParseInt(notificationBadge.textContent) |
8 | : 0; | 8 | : 0; |
9 | 9 | ||
10 | Ferdi.setBadge(notification); | 10 | Ferdi.setBadge(notification); |