frontend: fix config URL when loading from sub-page
This commit is contained in:
parent
6e5555782d
commit
65b261630f
|
@ -5,7 +5,7 @@ interface Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function loadConfig(): Promise<Config> {
|
async function loadConfig(): Promise<Config> {
|
||||||
const response = await fetch('./config.json')
|
const response = await fetch(__webpack_public_path__ + 'config.json')
|
||||||
const config = await response.json()
|
const config = await response.json()
|
||||||
return config
|
return config
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue