Skip to content

Commit

Permalink
fix: ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
itoao committed Aug 24, 2024
1 parent 5122a97 commit f158164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composables/push-notifications/createPushSubscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit f158164

Please sign in to comment.