From dfae2d231e39c81827d08fd8834d736c5b3005b1 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 31 Aug 2021 16:25:57 +0530 Subject: refactor: Use Ferdi.safeParseInt to ensure that parsing is done consistently in all recipes. --- recipes/anydo/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/anydo/webview.js') diff --git a/recipes/anydo/webview.js b/recipes/anydo/webview.js index cdb7e4f..4f4749b 100644 --- a/recipes/anydo/webview.js +++ b/recipes/anydo/webview.js @@ -6,7 +6,7 @@ module.exports = (Ferdi) => { if (countEls.length) { Array.from(countEls).forEach((el) => { - incompleteCount += parseInt(el.innerHTML, 10); + incompleteCount += Ferdi.safeParseInt(el.innerHTML); }); } -- cgit v1.2.3-70-g09d2