diff options
Diffstat (limited to 'recipes/skype')
-rw-r--r-- | recipes/skype/package.json | 2 | ||||
-rw-r--r-- | recipes/skype/webview.js | 4 |
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 | } |