We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a692dc commit 7f030faCopy full SHA for 7f030fa
1 file changed
fetch.js
@@ -432,15 +432,21 @@
432
}
433
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')
434
var body = 'response' in xhr ? xhr.response : xhr.responseText
435
- resolve(new Response(body, options))
+ setTimeout(function() {
436
+ resolve(new Response(body, options));
437
+ }, 0);
438
439
440
xhr.onerror = function() {
- reject(new TypeError('Network request failed'))
441
442
+ reject(new TypeError('Network request failed'));
443
444
445
446
xhr.ontimeout = function() {
447
448
449
450
451
452
xhr.open(request.method, request.url, true)
0 commit comments