Fix a case where the 'aborted' error message was getting through

This commit is contained in:
Paul Frazee 2023-01-19 17:55:00 -06:00
parent ddcc719192
commit 142b5dfc1b
2 changed files with 8 additions and 4 deletions

View file

@ -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')
}