2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

fix(adapter): fix undefined reference to hasBrowserEnv (#6572)

This commit is contained in:
Antonin Bas
2024-08-23 05:23:14 -07:00
committed by GitHub
parent fed1a4b2d7
commit 7004707c41
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
// Parse url
const fullPath = buildFullPath(config.baseURL, config.url);
const parsed = new URL(fullPath, utils.hasBrowserEnv ? platform.origin : undefined);
const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined);
const protocol = parsed.protocol || supportedProtocols[0];
if (protocol === 'data:') {