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/package.json | 2 +- recipes/anydo/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/anydo') diff --git a/recipes/anydo/package.json b/recipes/anydo/package.json index e015aee..eb6d8d4 100644 --- a/recipes/anydo/package.json +++ b/recipes/anydo/package.json @@ -1,7 +1,7 @@ { "id": "anydo", "name": "Any.do", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "repository": "https://github.com/chappy84/recipe-anydo", "config": { 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