From fc58230e6d229acb0573fc10b6fc4fd451c87c9c Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 17 Apr 2022 01:38:50 +0530 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/hostnet/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/hostnet/webview.js') diff --git a/recipes/hostnet/webview.js b/recipes/hostnet/webview.js index bf383c3..71d3306 100644 --- a/recipes/hostnet/webview.js +++ b/recipes/hostnet/webview.js @@ -1,6 +1,6 @@ module.exports = Ferdi => { const getMessages = () => { - Ferdi.setBadge(parseInt(document.getElementsByClassName('badge topbar-launcherbadge')[0].firstChild.data)); + Ferdi.setBadge(Number.parseInt(document.querySelectorAll('.badge.topbar-launcherbadge')[0].firstChild.data)); }; Ferdi.loop(getMessages); -- cgit v1.2.3-70-g09d2