aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nomadlist
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/nomadlist')
-rw-r--r--recipes/nomadlist/index.js3
-rw-r--r--recipes/nomadlist/package.json2
-rw-r--r--recipes/nomadlist/webview.js20
3 files changed, 5 insertions, 20 deletions
diff --git a/recipes/nomadlist/index.js b/recipes/nomadlist/index.js
index 46f936f..23607bd 100644
--- a/recipes/nomadlist/index.js
+++ b/recipes/nomadlist/index.js
@@ -1,2 +1 @@
1// just pass through Franz module.exports = Ferdi => Ferdi;
2module.exports = Franz => Franz;
diff --git a/recipes/nomadlist/package.json b/recipes/nomadlist/package.json
index e9189a1..67aff78 100644
--- a/recipes/nomadlist/package.json
+++ b/recipes/nomadlist/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "nomadlist", 2 "id": "nomadlist",
3 "name": "nomadlist", 3 "name": "nomadlist",
4 "version": "1.0.4", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://nomadlist.com/chat", 7 "serviceURL": "https://nomadlist.com/chat",
diff --git a/recipes/nomadlist/webview.js b/recipes/nomadlist/webview.js
index be1040c..1afaa1c 100644
--- a/recipes/nomadlist/webview.js
+++ b/recipes/nomadlist/webview.js
@@ -1,21 +1,7 @@
1const path = require('path'); 1module.exports = (Ferdi) => {
2
3module.exports = (Franz, options) => {
4 const getMessages = () => { 2 const getMessages = () => {
5 // get unread messages 3 Ferdi.setBadge($('.unread').length);
6 // const updates = document.getElementById('franz').getAttribute('data-unread');
7 const count = $('.unread').length;
8 Franz.setBadge(count);
9
10 // get conversations in 'My Inbox'
11 // const inbox = document.getElementById('franz').getAttribute('data-inbox');
12
13 // set Franz badge
14 // updates => active unread count
15 // inbox => passive unread count
16 // Franz.setBadge(updates, inbox);
17 }; 4 };
18 5
19 // check for new messages every second and update Franz badge 6 Ferdi.loop(getMessages);
20 Franz.loop(getMessages);
21}; 7};