2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

switches check order of xhr/http for electron

This commit is contained in:
samueleaton
2016-02-15 22:38:56 -07:00
parent 235f34312c
commit ddc965831c
+3 -3
View File
@@ -15,12 +15,12 @@ module.exports = function dispatchRequest(config) {
if (typeof config.adapter === 'function') {
// For custom adapter support
adapter = config.adapter;
} else if (typeof XMLHttpRequest !== 'undefined') {
// For browsers use XHR adapter
adapter = require('../adapters/xhr');
} else if (typeof process !== 'undefined') {
// For node use HTTP adapter
adapter = require('../adapters/http');
} else if (typeof XMLHttpRequest !== 'undefined') {
// For browsers use XHR adapter
adapter = require('../adapters/xhr');
}
if (typeof adapter === 'function') {