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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
279 B
JavaScript
Raw Normal View History

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-01-05 02:34:22 +01:00
config.base_url = window.location.origin;
}
export default config;