Skip to content

Commit

Permalink
Merge pull request #1828 from okTurtles/sebin/#1823-broken-push-notif…
Browse files Browse the repository at this point in the history
…ication

#1823 Get the push-notification working again
  • Loading branch information
taoeffect authored Feb 2, 2024
2 parents 921a611 + 69a9092 commit 7233a5c
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 7233a5c

Please sign in to comment.