aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/skype/webview.js
diff options
context:
space:
mode:
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 }