From ffeb63c04385946dbafdb431ea6b683519978413 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 24 Nov 2021 16:19:39 +0530 Subject: refactor: Use 'Ferdi.safeParseInt' --- recipes/good-reads/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/good-reads/webview.js') 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) => { ".siteHeader__topLevelItem--profileIcon .headerPersonalNav .modalTrigger .headerPersonalNav__icon .headerPersonalNav__flag" ); let notification = notificationBadge - ? Number.parseInt(notificationBadge.textContent) + ? Ferdi.safeParseInt(notificationBadge.textContent) : 0; Ferdi.setBadge(notification); -- cgit v1.2.3-70-g09d2