Skip to content

Commit

Permalink
get the push-notification working again
Browse files Browse the repository at this point in the history
  • Loading branch information
SebinSong committed Feb 1, 2024
1 parent 921a611 commit 69a9092
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/model/contracts/shared/nativeNotification.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ export async function requestNotificationPermission (force: boolean = false): Pr
}
}

// TODO FIXME: TEMPORARILY DISABLED AS IT CAUSES AN ERROR DURING THE TESTS
if (isNaN(1) && Notification.permission === 'granted') {
if (Notification.permission === 'granted') {
await sbp('service-worker/setup-push-subscription').catch((e) => {
// TODO: Temporary until this is better addressed. When running tests,
// it results in an AbortError.
console.error('Error setting up service worker', e)
})
}
Expand Down

0 comments on commit 69a9092

Please sign in to comment.