fix progress option to not throw error if http status is any value below 300

This commit is contained in:
2023-03-13 21:15:28 +10:00
parent 09376e8f98
commit a7219861f4

View File

@@ -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);