Fun picker improvements
This commit is contained in:
parent
427f91f903
commit
b0653d06fe
142 changed files with 3581 additions and 1280 deletions
9
ts/util/isAbortError.ts
Normal file
9
ts/util/isAbortError.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export function isAbortError(error: unknown): boolean {
|
||||
return (
|
||||
(error instanceof Error && 'type' in error && error.type === 'aborted') ||
|
||||
(error instanceof DOMException && error.name === 'AbortError')
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue