aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/skype/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-31 16:25:57 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-31 16:25:57 +0530
commitdfae2d231e39c81827d08fd8834d736c5b3005b1 (patch)
tree5037b401e7de837fdd6046a3c61ac76aed240e6e /recipes/skype/webview.js
parentNew recipe: odoo (diff)
downloadferdium-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/skype/webview.js')
-rw-r--r--recipes/skype/webview.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes/skype/webview.js b/recipes/skype/webview.js
index 9af7c2b..6e84d78 100644
--- a/recipes/skype/webview.js
+++ b/recipes/skype/webview.js
@@ -17,7 +17,9 @@ module.exports = (Ferdi, settings) => {
17 17
18 if (elementContainer) { 18 if (elementContainer) {
19 const element = elementContainer.querySelector('[data-text-as-pseudo-element]'); 19 const element = elementContainer.querySelector('[data-text-as-pseudo-element]');
20 count = parseInt(element.dataset.textAsPseudoElement, 10); 20 if (element && element.dataset) {
21 count = Ferdi.safeParseInt(element.dataset.textAsPseudoElement);
22 }
21 } 23 }
22 } 24 }
23 } 25 }