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/teamleader/webview.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'recipes/teamleader/webview.js') diff --git a/recipes/teamleader/webview.js b/recipes/teamleader/webview.js index 3041463..7eff414 100644 --- a/recipes/teamleader/webview.js +++ b/recipes/teamleader/webview.js @@ -4,8 +4,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de module.exports = (Ferdi) => { const getMessages = () => { - const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); - Ferdi.setBadge(unreadNotifications); + Ferdi.setBadge(document.getElementById('notifications_amount').innerHTML); }; Ferdi.loop(getMessages); -- cgit v1.2.3-70-g09d2