Skip to content

Commit

Permalink
fix(module): browserBaseURL as empty string (fixes #303)
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Apr 21, 2020
1 parent 6c5605d commit 18afe5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function axiosModule (_moduleOptions) {
// Apply defaults
const options = defu(moduleOptions, {
baseURL: `http://${defaultHost}:${defaultPort}${prefix}`,
browserBaseURL: null,
browserBaseURL: undefined,
credentials: false,
debug: false,
progress: true,
Expand All @@ -78,7 +78,7 @@ function axiosModule (_moduleOptions) {
}

// Default browserBaseURL
if (!options.browserBaseURL) {
if (typeof options.browserBaseURL === 'undefined') {
options.browserBaseURL = options.proxy ? prefix : options.baseURL
}

Expand Down

0 comments on commit 18afe5c

Please sign in to comment.