mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-01-29 09:01:22 -05:00
13 lines
274 B
JavaScript
13 lines
274 B
JavaScript
function getApiBase()
|
|
{
|
|
let apiBase = getSetting("BACKEND_API_URL");
|
|
|
|
if(apiBase == "")
|
|
{
|
|
// Default to the same-origin proxy bridge
|
|
apiBase = "/server";
|
|
}
|
|
|
|
// Remove trailing slash for consistency
|
|
return apiBase.replace(/\/$/, '');
|
|
} |