Skip to content

Commit

Permalink
Removes hard-coded http:// and port 2999 for custom API URLs (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
alulsh committed Apr 19, 2020
1 parent 69596c7 commit fdfa01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ inquirer
"{url}",
answers.url.includes("api.mapbox.com") ?
`https://api.mapbox.com` :
`http://${answers.url}:2999`
`${answers.url}`
)
.replace("{accessToken}", answers.token);
fs.writeFileSync("src/index.js", indexJS);
Expand Down

0 comments on commit fdfa01b

Please sign in to comment.