aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2021-11-24 16:19:39 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2021-11-24 16:19:39 +0530
commitffeb63c04385946dbafdb431ea6b683519978413 (patch)
tree95d4bcb15a278f458d7edb7e2f997b4cb2da8097
parentdocs: Update docs [skip ci] (diff)
downloadferdium-recipes-ffeb63c04385946dbafdb431ea6b683519978413.tar.gz
ferdium-recipes-ffeb63c04385946dbafdb431ea6b683519978413.tar.zst
ferdium-recipes-ffeb63c04385946dbafdb431ea6b683519978413.zip
refactor: Use 'Ferdi.safeParseInt'
-rw-r--r--all.json2
-rw-r--r--recipes/good-reads/package.json2
-rw-r--r--recipes/good-reads/webview.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/all.json b/all.json
index a2439e3..85e2da6 100644
--- a/all.json
+++ b/all.json
@@ -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);