Ignore exception from if failing to set badge
This commit is contained in:
parent
b9aeaf29a4
commit
9ed483abf7
1 changed files with 5 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue