diff options
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 | ||