mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +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) => {
|
||||
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')
|
||||
|
|
Loading…
Reference in a new issue