We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 183e592 + 72fc02f commit 63ac064Copy full SHA for 63ac064
lib/core/dispatchRequest.js
@@ -11,7 +11,7 @@ module.exports = function dispatchRequest(config) {
11
return new Promise(function (resolve, reject) {
12
try {
13
// For browsers use XHR adapter
14
- if (typeof window !== 'undefined') {
+ if ((typeof XMLHttpRequest !== 'undefined') || (typeof ActiveXObject !== 'undefined')) {
15
require('../adapters/xhr')(resolve, reject, config);
16
}
17
// For node use HTTP adapter
0 commit comments