fix progress option to not throw error if http status is any value below 300
This commit is contained in:
@@ -139,7 +139,7 @@ export const api = {
|
|||||||
result.data = xhr.response;
|
result.data = xhr.response;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xhr.status === 200) {
|
if (xhr.status < 300) {
|
||||||
resolve(result);
|
resolve(result);
|
||||||
} else {
|
} else {
|
||||||
reject(result);
|
reject(result);
|
||||||
|
|||||||
Reference in New Issue
Block a user