aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/skype
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
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')
-rw-r--r--recipes/skype/package.json2
-rw-r--r--recipes/skype/webview.js4
2 files changed, 4 insertions, 2 deletions
diff --git a/recipes/skype/package.json b/recipes/skype/package.json
index 57f4d87..342621c 100644
--- a/recipes/skype/package.json
+++ b/recipes/skype/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "skype", 2 "id": "skype",
3 "name": "Skype", 3 "name": "Skype",
4 "version": "3.1.0", 4 "version": "3.1.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://web.skype.com/", 7 "serviceURL": "https://web.skype.com/",
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 }