mirror of
https://github.com/elk-zone/elk.git
synced 2025-03-28 20:41:20 +03:00
fix: ci error
This commit is contained in:
parent
5122a9706f
commit
f158164873
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ export async function createPushSubscription(
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
let useError: PushSubscriptionError | Error = error
|
let useError: typeof PushSubscriptionError | Error = error
|
||||||
if (error.code === 11 && error.name === 'InvalidStateError')
|
if (error.code === 11 && error.name === 'InvalidStateError')
|
||||||
useError = new PushSubscriptionError('too_many_registrations', 'Too many registrations')
|
useError = new PushSubscriptionError('too_many_registrations', 'Too many registrations')
|
||||||
else if (error.code === 20 && error.name === 'AbortError')
|
else if (error.code === 20 && error.name === 'AbortError')
|
||||||
|
|
Loading…
Add table
Reference in a new issue