From c75f553ef91dff9ae0dd3218869035805b293d78 Mon Sep 17 00:00:00 2001 From: Bram Janssen Date: Mon, 14 Mar 2022 16:41:10 +0100 Subject: Add Hostnet recipe (#839) Co-authored-by: kytwb <412895+kytwb@users.noreply.github.com> --- recipes/hostnet/webview.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 recipes/hostnet/webview.js (limited to 'recipes/hostnet/webview.js') 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 @@ +module.exports = Ferdi => { + const getMessages = () => { + Ferdi.setBadge(parseInt(document.getElementsByClassName('badge topbar-launcherbadge')[0].firstChild.data)); + }; + + Ferdi.loop(getMessages); +}; \ No newline at end of file -- cgit v1.2.3-70-g09d2