@@ -57,7 +57,9 @@ this.superFetch = this.superFetch || (() => {
};
xhrRequest.onerror = error => {
reject(error);
- rejectResponse(error);
+ if (rejectResponse) {
+ setTimeout(() => rejectResponse(error), 1);
+ }
xhrRequest.open("GET", url, true);
xhrRequest.send();