From 9db43e100a672b6d6932ac68c0fbe503c129138b Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Sun, 12 Sep 2021 22:01:51 +0530 Subject: Added a check to verify that the folder name of the recipe matches the recipe id (#708) Use the recipe-id as master to rename internal folder names --- recipes/superhuman/webview.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 recipes/superhuman/webview.js (limited to 'recipes/superhuman/webview.js') diff --git a/recipes/superhuman/webview.js b/recipes/superhuman/webview.js new file mode 100644 index 0000000..697efa6 --- /dev/null +++ b/recipes/superhuman/webview.js @@ -0,0 +1,8 @@ +module.exports = (Ferdi) => { + const getMessages = () => { + const mentions = document.querySelectorAll('.chat-line .mentioned').length; + Ferdi.setBadge(mentions, 0); + }; + + Ferdi.loop(getMessages); +}; -- cgit v1.2.3-54-g00ecf