2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-27 14:47:43 +03:00

Removing unnecessary condition

This commit is contained in:
Nick Uraltsev
2017-11-11 15:09:02 -08:00
parent 1fa01fd674
commit b7d8d126da
-1
View File
@@ -26,7 +26,6 @@ module.exports = function xhrAdapter(config) {
// DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.
if (process.env.NODE_ENV !== 'test' &&
typeof window !== 'undefined' &&
!window.XMLHttpRequest &&
window.XDomainRequest && !('withCredentials' in request) &&
!isURLSameOrigin(config.url)) {
request = new window.XDomainRequest();