diff --git a/fetch.js b/fetch.js index 2abd34715174ea7fe40df009d7c556ad81646082..01aa5d06391f207b9e01c4739a9bec77ca1a2da0 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') {