forked from coracle/flotilla
Ignore exception from if failing to set badge
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user