diff options
author | 2021-09-12 09:17:19 +0530 | |
---|---|---|
committer | 2021-09-12 03:47:19 +0000 | |
commit | 6d63a93d7865bcc13cdc6bcf7d5c371377b8a355 (patch) | |
tree | c0f5dd3423fd15125c490179b8e34bbda52eb2ff /recipes/scrumpy/webview.js | |
parent | New recipe: 'flock' (#688) (diff) | |
download | ferdium-recipes-6d63a93d7865bcc13cdc6bcf7d5c371377b8a355.tar.gz ferdium-recipes-6d63a93d7865bcc13cdc6bcf7d5c371377b8a355.tar.zst ferdium-recipes-6d63a93d7865bcc13cdc6bcf7d5c371377b8a355.zip |
New recipe: 'scrumpy' (#689)
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 | }; | ||