diff options
Diffstat (limited to 'recipes/good-reads/webview.js')
-rw-r--r-- | recipes/good-reads/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |