mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-09-28 19:31:59 +02:00
9 lines
279 B
JavaScript
9 lines
279 B
JavaScript
const { config } = window;
|
|
|
|
// 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;
|