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