aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nextdoor
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-27 18:13:24 +0530
committerLibravatar GitHub <noreply@github.com>2021-08-27 18:13:24 +0530
commit155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch)
treed144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/nextdoor
parentdocs: fixed template file for creating recipe. (diff)
downloadferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.gz
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.zst
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.zip
chore: normalized all recipes to ensure compatibility with es6 (#639)
- Removed some calls to set badge with '0' all the time. - Removed all 'sourceMaps' since they are all outdated atm.
Diffstat (limited to 'recipes/nextdoor')
-rw-r--r--recipes/nextdoor/index.js2
-rw-r--r--recipes/nextdoor/package.json2
-rw-r--r--recipes/nextdoor/webview.js6
3 files changed, 5 insertions, 5 deletions
diff --git a/recipes/nextdoor/index.js b/recipes/nextdoor/index.js
index 258da41..23607bd 100644
--- a/recipes/nextdoor/index.js
+++ b/recipes/nextdoor/index.js
@@ -1 +1 @@
module.exports = Franz => Franz; module.exports = Ferdi => Ferdi;
diff --git a/recipes/nextdoor/package.json b/recipes/nextdoor/package.json
index 86561c0..1e5c75a 100644
--- a/recipes/nextdoor/package.json
+++ b/recipes/nextdoor/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "nextdoor", 2 "id": "nextdoor",
3 "name": "Nextdoor", 3 "name": "Nextdoor",
4 "version": "1.0.3", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://nextdoor.co.uk/inbox/" 7 "serviceURL": "https://nextdoor.co.uk/inbox/"
diff --git a/recipes/nextdoor/webview.js b/recipes/nextdoor/webview.js
index 280d6a5..0ea8f57 100644
--- a/recipes/nextdoor/webview.js
+++ b/recipes/nextdoor/webview.js
@@ -1,12 +1,12 @@
1module.exports = Franz => { 1module.exports = Ferdi => {
2 const getMessages = function getMessages() { 2 const getMessages = function getMessages() {
3 let unread = 0; 3 let unread = 0;
4 const notificationBadge = document.getElementsByClassName('notification-badge')[0]; 4 const notificationBadge = document.getElementsByClassName('notification-badge')[0];
5 if (notificationBadge != undefined) { 5 if (notificationBadge != undefined) {
6 unread = notificationBadge.innerText; 6 unread = notificationBadge.innerText;
7 } 7 }
8 Franz.setBadge(parseInt(unread, 10)); 8 Ferdi.setBadge(parseInt(unread, 10));
9 }; 9 };
10 10
11 Franz.loop(getMessages); 11 Ferdi.loop(getMessages);
12}; 12};