Skip to content

Commit

Permalink
use custom ferdium parseInt
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailkarsli authored Jun 7, 2024
1 parent 4423e04 commit e9ce47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/icloud-mail/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit e9ce47f

Please sign in to comment.