aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/feedbin/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/feedbin/webview.js')
-rw-r--r--recipes/feedbin/webview.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes/feedbin/webview.js b/recipes/feedbin/webview.js
new file mode 100644
index 0000000..f44122a
--- /dev/null
+++ b/recipes/feedbin/webview.js
@@ -0,0 +1,8 @@
1module.exports = (Franz, options) => {
2 function getMessages() {
3 const count = feedbin.count_data.unread_entries.length || 0;
4 Franz.setBadge(count);
5 }
6
7 Franz.loop(getMessages);
8}