fix: ci error

This commit is contained in:
aoito 2024-08-25 06:53:35 +09:00
parent 5122a9706f
commit f158164873

View file

@ -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')