Add web network failure error detection (close APP-83) (#537)
This commit is contained in:
@@ -19,5 +19,9 @@ export function cleanError(str: any): string {
|
||||
|
||||
export function isNetworkError(e: unknown) {
|
||||
const str = String(e)
|
||||
return str.includes('Abort') || str.includes('Network request failed')
|
||||
return (
|
||||
str.includes('Abort') ||
|
||||
str.includes('Network request failed') ||
|
||||
str.includes('Failed to fetch')
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user