frontend: fix config URL when loading from sub-page

This commit is contained in:
Paul Bienkowski 2021-10-10 11:01:18 +02:00
parent 6e5555782d
commit 65b261630f

View file

@ -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
}