aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
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 /recipes
parentdocs: Update docs [skip ci] (diff)
downloadferdium-recipes-ffeb63c04385946dbafdb431ea6b683519978413.tar.gz
ferdium-recipes-ffeb63c04385946dbafdb431ea6b683519978413.tar.zst
ferdium-recipes-ffeb63c04385946dbafdb431ea6b683519978413.zip
refactor: Use 'Ferdi.safeParseInt'
Diffstat (limited to 'recipes')
-rw-r--r--recipes/good-reads/package.json2
-rw-r--r--recipes/good-reads/webview.js2
2 files changed, 2 insertions, 2 deletions
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);