diff options
Diffstat (limited to 'recipes/vk')
-rw-r--r-- | recipes/vk/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/vk/webview.js b/recipes/vk/webview.js index aeab0ec..decec13 100644 --- a/recipes/vk/webview.js +++ b/recipes/vk/webview.js | |||
@@ -1,9 +1,9 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdi => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let directs = 0; | 3 | let directs = 0; |
4 | const element = document.getElementsByClassName('left_count'); | 4 | const element = document.querySelectorAll('.left_count'); |
5 | if (element.length > 0) { | 5 | if (element.length > 0) { |
6 | directs = Ferdi.safeParseInt(element[0].innerText); | 6 | directs = Ferdi.safeParseInt(element[0].textContent); |
7 | } | 7 | } |
8 | 8 | ||
9 | Ferdi.setBadge(directs); | 9 | Ferdi.setBadge(directs); |