Don't stop signup if enable-push failed

This commit is contained in:
artur 2024-02-16 14:55:35 +03:00
parent 46336d817f
commit 3813cef605

View File

@ -123,6 +123,7 @@ export const ModalConfirmConnect = () => {
const options = { perms, appUrl }
await confirmPending(pendingReqId, true, true, options)
} else {
try {
await askNotificationPermission()
const result = await swicCall('enablePush')
@ -131,7 +132,7 @@ export const ModalConfirmConnect = () => {
} catch (e: any) {
console.log('error', e)
notify('Please enable Notifications in website settings!', 'error')
return
// keep going
}
try {