diff options
author | 2022-03-14 16:41:10 +0100 | |
---|---|---|
committer | 2022-03-14 16:41:10 +0100 | |
commit | c75f553ef91dff9ae0dd3218869035805b293d78 (patch) | |
tree | 203061b3b6381b74eef78442f50bc4c15fb112b5 /recipes/hostnet/webview.js | |
parent | docs: add BramManuel as a contributor for code (#843) (diff) | |
download | ferdium-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.js | 7 |
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 @@ | |||
1 | module.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 | ||