mirror of
https://github.com/tenrok/axios.git
synced 2026-06-11 18:02:32 +03:00
fix(platform): fixed emulated browser detection in node.js environment; (#6055)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import utils from './../utils.js';
|
||||
import platform from '../platform/index.js';
|
||||
|
||||
export default platform.isStandardBrowserEnv ?
|
||||
export default platform.hasStandardBrowserEnv ?
|
||||
|
||||
// Standard browser envs support document.cookie
|
||||
(function standardBrowserEnv() {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import utils from './../utils.js';
|
||||
import platform from '../platform/index.js';
|
||||
|
||||
export default platform.isStandardBrowserEnv ?
|
||||
export default platform.hasStandardBrowserEnv ?
|
||||
|
||||
// Standard browser envs have full support of the APIs needed to test
|
||||
// whether the request URL is of the same origin as current location.
|
||||
|
||||
Reference in New Issue
Block a user