aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/hostnet/webview.js
diff options
context:
space:
mode:
authorLibravatar Bram Janssen <zakelijk@bram-janssen.nl>2022-03-14 16:41:10 +0100
committerLibravatar GitHub <noreply@github.com>2022-03-14 16:41:10 +0100
commitc75f553ef91dff9ae0dd3218869035805b293d78 (patch)
tree203061b3b6381b74eef78442f50bc4c15fb112b5 /recipes/hostnet/webview.js
parentdocs: add BramManuel as a contributor for code (#843) (diff)
downloadferdium-recipes-c75f553ef91dff9ae0dd3218869035805b293d78.tar.gz
ferdium-recipes-c75f553ef91dff9ae0dd3218869035805b293d78.tar.zst
ferdium-recipes-c75f553ef91dff9ae0dd3218869035805b293d78.zip
Add Hostnet recipe (#839)
Co-authored-by: kytwb <412895+kytwb@users.noreply.github.com>
Diffstat (limited to 'recipes/hostnet/webview.js')
-rw-r--r--recipes/hostnet/webview.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes/hostnet/webview.js b/recipes/hostnet/webview.js
new file mode 100644
index 0000000..bf383c3
--- /dev/null
+++ b/recipes/hostnet/webview.js
@@ -0,0 +1,7 @@
1module.exports = Ferdi => {
2 const getMessages = () => {
3 Ferdi.setBadge(parseInt(document.getElementsByClassName('badge topbar-launcherbadge')[0].firstChild.data));
4 };
5
6 Ferdi.loop(getMessages);
7}; \ No newline at end of file