aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/twitter
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/twitter
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/twitter')
-rw-r--r--recipes/twitter/index.js4
-rw-r--r--recipes/twitter/webview.js9
2 files changed, 4 insertions, 9 deletions
diff --git a/recipes/twitter/index.js b/recipes/twitter/index.js
index e8243fb..258da41 100644
--- a/recipes/twitter/index.js
+++ b/recipes/twitter/index.js
@@ -1,3 +1 @@
1"use strict"; module.exports = Franz => Franz;
2
3module.exports = Franz => Franz; \ No newline at end of file
diff --git a/recipes/twitter/webview.js b/recipes/twitter/webview.js
index 81f0ba5..03b2b2d 100644
--- a/recipes/twitter/webview.js
+++ b/recipes/twitter/webview.js
@@ -1,8 +1,6 @@
1"use strict";
2
3module.exports = Franz => { 1module.exports = Franz => {
4 const getMessages = () => { 2 const getMessages = () => {
5 var direct = 0; 3 let direct = 0;
6 4
7 // "Notifications" and "Messages" - aria-label ending in 5 // "Notifications" and "Messages" - aria-label ending in
8 // "unread items". Sum the values for direct badge. 6 // "unread items". Sum the values for direct badge.
@@ -14,10 +12,9 @@ module.exports = Franz => {
14 if (DMElement) { 12 if (DMElement) {
15 direct += DMElement.innerHTML; 13 direct += DMElement.innerHTML;
16 } 14 }
17 15
18 Franz.setBadge(direct); 16 Franz.setBadge(direct);
19 }; 17 };
20 18
21 Franz.loop(getMessages); 19 Franz.loop(getMessages);
22 20};
23}; \ No newline at end of file