Use relative path when retrieving config.json
Using absolute prevents the web application from being hosted inside a subdirectory. Change-Id: Ie236372dd60f16a1f53c0f5d14b4a7675d7d1973
This commit is contained in:
parent
faf985d81c
commit
06f906f570
|
@ -10,7 +10,7 @@ export function setConfig(config) {
|
|||
|
||||
export function getConfig() {
|
||||
return dispatch => {
|
||||
return axios.get("/config.json").then(response => {
|
||||
return axios.get("config.json").then(response => {
|
||||
const config = response.data;
|
||||
dispatch(setConfig(config));
|
||||
return response;
|
||||
|
|
Loading…
Reference in New Issue