Don't stop signup if enable-push failed
This commit is contained in:
parent
46336d817f
commit
3813cef605
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user