diff options
Diffstat (limited to 'recipes/telegram-react')
-rw-r--r-- | recipes/telegram-react/index.js | 4 | ||||
-rw-r--r-- | recipes/telegram-react/webview.js | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/recipes/telegram-react/index.js b/recipes/telegram-react/index.js index 6343150..ac3e6f0 100644 --- a/recipes/telegram-react/index.js +++ b/recipes/telegram-react/index.js | |||
@@ -1,4 +1,2 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => Franz; | 1 | module.exports = Franz => Franz; |
4 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlbGVncmFtL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidGVsZWdyYW0vaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 \ No newline at end of file | 2 | // # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlbGVncmFtL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidGVsZWdyYW0vaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 |
diff --git a/recipes/telegram-react/webview.js b/recipes/telegram-react/webview.js index 8bc3839..030040b 100644 --- a/recipes/telegram-react/webview.js +++ b/recipes/telegram-react/webview.js | |||
@@ -1,13 +1,11 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => { | 1 | module.exports = Franz => { |
4 | const getMessages = function getMessages() { | 2 | const getMessages = function getMessages() { |
5 | let count = 0; | 3 | let count = 0; |
6 | const elements = document.querySelectorAll(".chatlist > li:not(.is-muted)"); | 4 | const elements = document.querySelectorAll('.chatlist > li:not(.is-muted)'); |
7 | if (elements) { | 5 | if (elements) { |
8 | for (let i = 0; i < elements.length; i += 1) { | 6 | for (let i = 0; i < elements.length; i += 1) { |
9 | if (elements[i].querySelector(".unread") && elements[i].querySelector(".unread").innerHTML !== 0) { | 7 | if (elements[i].querySelector('.unread') && elements[i].querySelector('.unread').innerHTML !== 0) { |
10 | count += parseInt(elements[i].querySelector(".unread").innerHTML); | 8 | count += parseInt(elements[i].querySelector('.unread').innerHTML); |
11 | } | 9 | } |
12 | } | 10 | } |
13 | } | 11 | } |