diff --git a/composables/push-notifications/createPushSubscription.ts b/composables/push-notifications/createPushSubscription.ts index 39df4c32ad..a45d1604f7 100644 --- a/composables/push-notifications/createPushSubscription.ts +++ b/composables/push-notifications/createPushSubscription.ts @@ -36,7 +36,7 @@ export async function createPushSubscription( ) }) .catch((error) => { - let useError: PushSubscriptionError | Error = error + let useError: typeof PushSubscriptionError | Error = error if (error.code === 11 && error.name === 'InvalidStateError') useError = new PushSubscriptionError('too_many_registrations', 'Too many registrations') else if (error.code === 20 && error.name === 'AbortError')