aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nextdoor
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/nextdoor
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/nextdoor')
-rw-r--r--recipes/nextdoor/index.js4
-rw-r--r--recipes/nextdoor/webview.js10
2 files changed, 5 insertions, 9 deletions
diff --git a/recipes/nextdoor/index.js b/recipes/nextdoor/index.js
index e8243fb..258da41 100644
--- a/recipes/nextdoor/index.js
+++ b/recipes/nextdoor/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/nextdoor/webview.js b/recipes/nextdoor/webview.js
index e20c6b5..280d6a5 100644
--- a/recipes/nextdoor/webview.js
+++ b/recipes/nextdoor/webview.js
@@ -1,14 +1,12 @@
1"use strict";
2
3module.exports = Franz => { 1module.exports = Franz => {
4 const getMessages = function getMessages() { 2 const getMessages = function getMessages() {
5 var unread = 0 3 let unread = 0;
6 const notificationBadge = document.getElementsByClassName('notification-badge')[0] 4 const notificationBadge = document.getElementsByClassName('notification-badge')[0];
7 if (notificationBadge != undefined) { 5 if (notificationBadge != undefined) {
8 unread = notificationBadge.innerText; 6 unread = notificationBadge.innerText;
9 } 7 }
10 Franz.setBadge(parseInt(unread, 10)); 8 Franz.setBadge(parseInt(unread, 10));
11 }; 9 };
12 10
13 Franz.loop(getMessages); 11 Franz.loop(getMessages);
14}; \ No newline at end of file 12};