Ignore exception from if failing to set badge

This commit is contained in:
Matthew Remmel 2025-09-26 14:20:43 -04:00 committed by hodlbod
parent b9aeaf29a4
commit 9ed483abf7

View file

@ -165,7 +165,11 @@ export const badgeCount = derived(notifications, notifications => {
export const handleBadgeCountChanges = async (count: number) => { export const handleBadgeCountChanges = async (count: number) => {
if (get(userSettingsValues).show_notifications_badge) { if (get(userSettingsValues).show_notifications_badge) {
try {
await Badge.set({count}) await Badge.set({count})
} catch (err) {
// failed to set badge
}
} else { } else {
await clearBadges() await clearBadges()
} }