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 fdf6ad7f06
commit 59b67e5120

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
}