Files
ntfy/web/src/app/config.js
nimbleghost 6f6a2d1f69 Run prettier
2023-05-23 21:13:17 +02:00

10 lines
282 B
JavaScript

const config = window.config;
// 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 === "") {
config.base_url = window.location.origin;
}
export default config;