diff options
author | 2021-09-12 08:54:36 +0530 | |
---|---|---|
committer | 2021-09-12 09:01:15 +0530 | |
commit | 59f2d70ae9c25b11d21b0282f41485e0325b93a6 (patch) | |
tree | d3191aa2a22e4446f104c5edda49a4f8d0a9fb1d /recipes/flock/webview.js | |
parent | New recipe: 'producthunt' (#687) (diff) | |
download | ferdium-recipes-59f2d70ae9c25b11d21b0282f41485e0325b93a6.tar.gz ferdium-recipes-59f2d70ae9c25b11d21b0282f41485e0325b93a6.tar.zst ferdium-recipes-59f2d70ae9c25b11d21b0282f41485e0325b93a6.zip |
New recipe: 'flock' (#688)
Diffstat (limited to 'recipes/flock/webview.js')
-rw-r--r-- | recipes/flock/webview.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes/flock/webview.js b/recipes/flock/webview.js new file mode 100644 index 0000000..29b52d3 --- /dev/null +++ b/recipes/flock/webview.js | |||
@@ -0,0 +1,7 @@ | |||
1 | module.exports = Ferdi => { | ||
2 | const getMessages = () => { | ||
3 | const allMessages = Ferdi.safeParseInt(document.querySelector('.team-counter').textContent); | ||
4 | Ferdi.setBadge(allMessages); | ||
5 | }; | ||
6 | Ferdi.loop(getMessages); | ||
7 | }; | ||