From dfae2d231e39c81827d08fd8834d736c5b3005b1 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 31 Aug 2021 16:25:57 +0530 Subject: refactor: Use Ferdi.safeParseInt to ensure that parsing is done consistently in all recipes. --- recipes/guilded/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/guilded/webview.js') diff --git a/recipes/guilded/webview.js b/recipes/guilded/webview.js index ccace71..5d56d39 100644 --- a/recipes/guilded/webview.js +++ b/recipes/guilded/webview.js @@ -6,7 +6,7 @@ module.exports = Ferdi => { const innerBadge = notificationBadge.getElementsByClassName('BadgeV2-count')[0]; unread = innerBadge.innerText; } - Ferdi.setBadge(parseInt(unread, 10)); + Ferdi.setBadge(unread); }; Ferdi.loop(getMessages); -- cgit v1.2.3-54-g00ecf