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/disqus/package.json | 2 +- recipes/disqus/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/disqus') diff --git a/recipes/disqus/package.json b/recipes/disqus/package.json index f9a48df..73f9a24 100644 --- a/recipes/disqus/package.json +++ b/recipes/disqus/package.json @@ -1,7 +1,7 @@ { "id": "disqus", "name": "Disqus", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "config": { "serviceURL": "https://disqus.com/home/" diff --git a/recipes/disqus/webview.js b/recipes/disqus/webview.js index c1e315c..b5c1902 100644 --- a/recipes/disqus/webview.js +++ b/recipes/disqus/webview.js @@ -1,6 +1,6 @@ const getInnerInt = selector => { const element = document.querySelector(selector); - return element && parseInt(element.innerText); + return element && Ferdi.safeParseInt(element.innerText); }; module.exports = Ferdi => { -- cgit v1.2.3-70-g09d2