mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Merge pull request #4620 from thornbill/standalone-urls
This commit is contained in:
commit
e07c51226c
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user