diff options
Diffstat (limited to 'recipes/scrumpy/webview.js')
-rw-r--r-- | recipes/scrumpy/webview.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes/scrumpy/webview.js b/recipes/scrumpy/webview.js new file mode 100644 index 0000000..b53404b --- /dev/null +++ b/recipes/scrumpy/webview.js | |||
@@ -0,0 +1,8 @@ | |||
1 | module.exports = Ferdi => { | ||
2 | const getMessages = function getMessages() { | ||
3 | const notifications = document.querySelector('.c-notifications-dropdown__count') | ||
4 | Ferdi.setBadge(notifications.innerText); | ||
5 | }; | ||
6 | |||
7 | Ferdi.loop(getMessages); | ||
8 | }; | ||