aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/telegram-react
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
commit97697e3d069972844b2912a93022f4a4904a40d6 (patch)
tree53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/telegram-react
parentAllow any url in the custom-service to allow for sites like 'http://translate... (diff)
downloadferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/telegram-react')
-rw-r--r--recipes/telegram-react/index.js4
-rw-r--r--recipes/telegram-react/webview.js8
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
3module.exports = Franz => Franz; 1module.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
3module.exports = Franz => { 1module.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 }