From 69a9092e145f384802034bb5cafd7d432af2873a Mon Sep 17 00:00:00 2001 From: SebinSong Date: Fri, 2 Feb 2024 12:18:07 +1300 Subject: [PATCH] get the push-notification working again --- frontend/model/contracts/shared/nativeNotification.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/model/contracts/shared/nativeNotification.js b/frontend/model/contracts/shared/nativeNotification.js index 6c05e74f06..f32021be7c 100644 --- a/frontend/model/contracts/shared/nativeNotification.js +++ b/frontend/model/contracts/shared/nativeNotification.js @@ -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) }) }