Skip to content

Commit 2d9d4ed

Browse files
authored
Merge pull request #19 from ianwith/dev
support iOS fetch failure while offline
2 parents 71b1b74 + fbee442 commit 2d9d4ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rexxarFetch.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ function resolveResponse(response) {
9292

9393
});
9494
} else {
95+
if (response.status === 999) {
96+
throw new TypeError('Network request failed');
97+
}
9598
return response;
9699
}
97100

0 commit comments

Comments
 (0)