aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-04-13 22:07:06 +0200
committerLibravatar GitHub <noreply@github.com>2020-04-13 22:07:06 +0200
commita3de12e548a2c2d7387d1b7f4c5fcb3953ae2267 (patch)
treefc4c630c62ca39e9092eaf4f27718bba583a4cb7 /uncompressed
parentMerge pull request #95 from getferdi/feat/telegram (diff)
parentUpdates Nextdoor to 1.0.1: Fixes notification disappearing (diff)
downloadferdium-recipes-a3de12e548a2c2d7387d1b7f4c5fcb3953ae2267.tar.gz
ferdium-recipes-a3de12e548a2c2d7387d1b7f4c5fcb3953ae2267.tar.zst
ferdium-recipes-a3de12e548a2c2d7387d1b7f4c5fcb3953ae2267.zip
Merge pull request #97 from JakeSteam/master
Updates Nextdoor to 1.0.1: Fixes notification disappearing
Diffstat (limited to 'uncompressed')
-rw-r--r--uncompressed/nextdoor/README.md6
-rw-r--r--uncompressed/nextdoor/package.json2
-rw-r--r--uncompressed/nextdoor/webview.js6
3 files changed, 11 insertions, 3 deletions
diff --git a/uncompressed/nextdoor/README.md b/uncompressed/nextdoor/README.md
index c137e14..f1fec15 100644
--- a/uncompressed/nextdoor/README.md
+++ b/uncompressed/nextdoor/README.md
@@ -1,5 +1,9 @@
1# Nextdoor for Ferdi 1# Nextdoor for Ferdi
2This is the unofficial Ferdi recipe for Nextdoor 2This is the unofficial Ferdi recipe for Nextdoor
3 3
4### Release notes
51.0.1: Fixes notification not disappearing.
61.0.0: First version
7
4### How to create your own Ferdi recipes: 8### How to create your own Ferdi recipes:
5* [Read the documentation](https://github.com/getferdi/recipes/blob/master/docs/integration.md) 9* [Read the documentation](https://github.com/getferdi/recipes/blob/master/docs/integration.md) \ No newline at end of file
diff --git a/uncompressed/nextdoor/package.json b/uncompressed/nextdoor/package.json
index e7789c6..93dabb8 100644
--- a/uncompressed/nextdoor/package.json
+++ b/uncompressed/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.0", 4 "version": "1.0.1",
5 "description": "Nextdoor", 5 "description": "Nextdoor",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Jake Lee <ferdi@jakelee.co.uk>", 7 "author": "Jake Lee <ferdi@jakelee.co.uk>",
diff --git a/uncompressed/nextdoor/webview.js b/uncompressed/nextdoor/webview.js
index c17e99d..e20c6b5 100644
--- a/uncompressed/nextdoor/webview.js
+++ b/uncompressed/nextdoor/webview.js
@@ -2,7 +2,11 @@
2 2
3module.exports = Franz => { 3module.exports = Franz => {
4 const getMessages = function getMessages() { 4 const getMessages = function getMessages() {
5 const unread = document.getElementsByClassName('notification-badge')[0].innerText; 5 var unread = 0
6 const notificationBadge = document.getElementsByClassName('notification-badge')[0]
7 if (notificationBadge != undefined) {
8 unread = notificationBadge.innerText;
9 }
6 Franz.setBadge(parseInt(unread, 10)); 10 Franz.setBadge(parseInt(unread, 10));
7 }; 11 };
8 12