Commit dff38d1
committed
refactor: use shared isAbortError utility in AuthTokenModal
Replace two inline `error instanceof DOMException && error.name === "AbortError"`
checks with the existing shared `isAbortError()` utility from
`@/browser/utils/isAbortError`. The shared utility is a superset that
handles any Error with name "AbortError" (including DOMException),
so behavior is preserved.1 parent a0f0d32 commit dff38d1
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | | - | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
| 221 | + | |
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
| |||
0 commit comments