diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-31 16:25:57 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-08-31 16:25:57 +0530 |
commit | dfae2d231e39c81827d08fd8834d736c5b3005b1 (patch) | |
tree | 5037b401e7de837fdd6046a3c61ac76aed240e6e /recipes/disqus/webview.js | |
parent | New recipe: odoo (diff) | |
download | ferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.tar.gz ferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.tar.zst ferdium-recipes-dfae2d231e39c81827d08fd8834d736c5b3005b1.zip |
refactor: Use Ferdi.safeParseInt to ensure that parsing is done consistently in all recipes.
Diffstat (limited to 'recipes/disqus/webview.js')
-rw-r--r-- | recipes/disqus/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
1 | const getInnerInt = selector => { | 1 | const getInnerInt = selector => { |
2 | const element = document.querySelector(selector); | 2 | const element = document.querySelector(selector); |
3 | return element && parseInt(element.innerText); | 3 | return element && Ferdi.safeParseInt(element.innerText); |
4 | }; | 4 | }; |
5 | 5 | ||
6 | module.exports = Ferdi => { | 6 | module.exports = Ferdi => { |