| 1 |
const { config } = window; |
| 2 |
|
| 3 |
// The backend returns an empty base_url for the config struct, |
| 4 |
// so the frontend (hey, that's us!) can use the current location. |
| 5 |
if (!config.base_url || config.base_url === "") { |
| 6 |
config.base_url = window.location.origin; |
| 7 |
} |
| 8 |
|
| 9 |
export default config; |