2022-03-10 05:28:55 +01:00
|
|
|
const config = window.config;
|
2023-01-05 02:34:22 +01:00
|
|
|
|
2023-01-18 21:50:06 +01:00
|
|
|
// The backend returns an empty base_url for the config struct,
|
|
|
|
// so the frontend (hey, that's us!) can use the current location.
|
|
|
|
if (!config.base_url || config.base_url === "") {
|
2023-01-05 02:34:22 +01:00
|
|
|
config.base_url = window.location.origin;
|
|
|
|
}
|
|
|
|
|
2022-03-10 05:28:55 +01:00
|
|
|
export default config;
|