1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-10-01 21:01:58 +02:00
ntfy/web/src/app/config.js

10 lines
279 B
JavaScript
Raw Normal View History

2023-05-24 09:03:28 +02:00
const { config } = window;
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-05-23 21:13:01 +02:00
config.base_url = window.location.origin;
2023-01-05 02:34:22 +01:00
}
export default config;