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