Fix a case where the 'aborted' error message was getting through
This commit is contained in:
parent
ddcc719192
commit
142b5dfc1b
2 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
export function isNetworkError(e: unknown) {
|
||||
const str = String(e)
|
||||
return str.includes('Aborted') || str.includes('Network request failed')
|
||||
return str.includes('Abort') || str.includes('Network request failed')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue