diff --git a/fetch.js b/fetch.js index 2abd3471..01aa5d06 100644 --- a/fetch.js +++ b/fetch.js @@ -368,6 +368,10 @@ reject(new TypeError('Network request failed')) } + xhr.ontimeout = function() { + reject(new TypeError('Network request failed')) + } + xhr.open(request.method, request.url, true) if (request.credentials === 'include') {