frontend: fix config URL when loading from sub-page
This commit is contained in:
parent
fdf6ad7f06
commit
59b67e5120
|
@ -5,7 +5,7 @@ interface 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()
|
||||
return config
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue