diff options
Diffstat (limited to 'recipes/superhuman/webview.js')
-rw-r--r-- | recipes/superhuman/webview.js | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ | |||
1 | module.exports = (Ferdi) => { | ||
2 | const getMessages = () => { | ||
3 | const mentions = document.querySelectorAll('.chat-line .mentioned').length; | ||
4 | Ferdi.setBadge(mentions, 0); | ||
5 | }; | ||
6 | |||
7 | Ferdi.loop(getMessages); | ||
8 | }; | ||