Merge pull request #4620 from thornbill/standalone-urls

This commit is contained in:
Bill Thornton 2023-05-19 10:09:33 -04:00 committed by GitHub
commit e07c51226c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ export function getCurrentUser() {
// TODO: investigate url prefix support for serverAddress function
export async function serverAddress() {
const apiClient = window.ApiClient;
const apiClient = window.ApiClient ?? ServerConnections.currentApiClient();
if (apiClient) {
return Promise.resolve(apiClient.serverAddress());