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/rainloop/webview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/rainloop/webview.js') diff --git a/recipes/rainloop/webview.js b/recipes/rainloop/webview.js index e5052b8..346e51f 100644 --- a/recipes/rainloop/webview.js +++ b/recipes/rainloop/webview.js @@ -9,10 +9,10 @@ module.exports = Ferdi => { if (typeof countText === 'string' && countText !== '') { if ($(obj).hasClass('system')) { if ($(obj).hasClass('i-am-inbox')) { - inbox += parseInt(countText); + inbox += Ferdi.safeParseInt(countText); } } else { - updates += parseInt(countText); + updates += Ferdi.safeParseInt(countText); } } }); -- cgit v1.2.3-70-g09d2