mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Removing unnecessary condition
This commit is contained in:
@@ -26,7 +26,6 @@ module.exports = function xhrAdapter(config) {
|
|||||||
// DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.
|
// DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.
|
||||||
if (process.env.NODE_ENV !== 'test' &&
|
if (process.env.NODE_ENV !== 'test' &&
|
||||||
typeof window !== 'undefined' &&
|
typeof window !== 'undefined' &&
|
||||||
!window.XMLHttpRequest &&
|
|
||||||
window.XDomainRequest && !('withCredentials' in request) &&
|
window.XDomainRequest && !('withCredentials' in request) &&
|
||||||
!isURLSameOrigin(config.url)) {
|
!isURLSameOrigin(config.url)) {
|
||||||
request = new window.XDomainRequest();
|
request = new window.XDomainRequest();
|
||||||
|
|||||||
Reference in New Issue
Block a user