From e9ce47faa1feb93ec95a5480062a9feb9d26e7af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Karsl=C4=B1?= <17887754+ismailkarsli@users.noreply.github.com> Date: Sat, 8 Jun 2024 01:53:59 +0300 Subject: [PATCH] use custom ferdium parseInt --- recipes/icloud-mail/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/icloud-mail/webview.js b/recipes/icloud-mail/webview.js index 1e46251b4..526a205b1 100644 --- a/recipes/icloud-mail/webview.js +++ b/recipes/icloud-mail/webview.js @@ -11,7 +11,7 @@ module.exports = Ferdium => { `.mailbox-list-pane .mailbox-list .mailbox-list-item:first-child p:last-child`, ); if (!unread) return; - const count = Number.parseInt(unread.textContent) ?? 0; + const count = Ferdium.safePerseInt(unread.textContent) ?? 0; Ferdium.setBadge(count); };