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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user