aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/flock/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2021-09-12 08:54:36 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-12 09:01:15 +0530
commit59f2d70ae9c25b11d21b0282f41485e0325b93a6 (patch)
treed3191aa2a22e4446f104c5edda49a4f8d0a9fb1d /recipes/flock/webview.js
parentNew recipe: 'producthunt' (#687) (diff)
downloadferdium-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.js7
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 @@
1module.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};