1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-03 10:24:14 +01:00
ntfy/web/src/app/config.js

10 lines
284 B
JavaScript
Raw Normal View History

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;
}
export default config;