1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #5657 from thornbill/always-check-server

Revert "Fix extra requests in standalone mode"
This commit is contained in:
Bill Thornton 2024-06-04 16:10:25 -04:00 committed by GitHub
commit 574eddada8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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