2
0
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:
Tomáš Holas
2015-07-23 14:19:14 +02:00
parent ca42bb1d2a
commit 72fc02f2a5
+1 -1
View File
@@ -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