2
0
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:
Dmitriy Mozgovoy
2023-11-07 22:16:15 +02:00
committed by GitHub
parent f7adacdbaa
commit 3dc8369e50
6 changed files with 56 additions and 56 deletions
+1 -1
View File
@@ -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() {
+1 -1
View File
@@ -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.