mirror of
https://github.com/tenrok/axios.git
synced 2026-05-30 15:24:11 +03:00
XHR browser check now works in IE8
Test for ActiveXObject
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = function dispatchRequest(config) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
try {
|
||||
// For browsers use XHR adapter
|
||||
if (typeof XMLHttpRequest !== 'undefined') {
|
||||
if ((typeof XMLHttpRequest !== 'undefined') || (typeof ActiveXObject !== 'undefined')) {
|
||||
require('../adapters/xhr')(resolve, reject, config);
|
||||
}
|
||||
// For node use HTTP adapter
|
||||
|
||||
Reference in New Issue
Block a user