From 436d14b97626728e4ad45c9c9015ab9ec238de1c Mon Sep 17 00:00:00 2001 From: Nick Uraltsev Date: Mon, 12 Sep 2016 11:38:28 -0700 Subject: [PATCH] Fixing issue with responseURL property `responseURL` is not supported in IE --- lib/adapters/xhr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adapters/xhr.js b/lib/adapters/xhr.js index 6dac3e7..b0035d7 100644 --- a/lib/adapters/xhr.js +++ b/lib/adapters/xhr.js @@ -57,7 +57,7 @@ module.exports = function xhrAdapter(config) { // handled by onerror instead // With one exception: request that using file: protocol, most browsers // will return status as 0 even though it's a successful request - if (request.status === 0 && request.responseURL.indexOf('file:') !== 0) { + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { return; }