From 155c4b832281348c16be1f4ef667e6e23dbf1bd8 Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Fri, 27 Aug 2021 18:13:24 +0530 Subject: 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. --- recipes/nomadlist/index.js | 3 +-- recipes/nomadlist/package.json | 2 +- recipes/nomadlist/webview.js | 20 +++----------------- 3 files changed, 5 insertions(+), 20 deletions(-) (limited to 'recipes/nomadlist') 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 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Ferdi => Ferdi; 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 @@ { "id": "nomadlist", "name": "nomadlist", - "version": "1.0.4", + "version": "1.1.0", "license": "MIT", "config": { "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 @@ -const path = require('path'); - -module.exports = (Franz, options) => { +module.exports = (Ferdi) => { const getMessages = () => { - // get unread messages - // const updates = document.getElementById('franz').getAttribute('data-unread'); - const count = $('.unread').length; - Franz.setBadge(count); - - // get conversations in 'My Inbox' - // const inbox = document.getElementById('franz').getAttribute('data-inbox'); - - // set Franz badge - // updates => active unread count - // inbox => passive unread count - // Franz.setBadge(updates, inbox); + Ferdi.setBadge($('.unread').length); }; - // check for new messages every second and update Franz badge - Franz.loop(getMessages); + Ferdi.loop(getMessages); }; -- cgit v1.2.3-54-g00ecf