mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #2140 from thornbill/yet-another-startup-fix
Fix use of global ApiClient in authenticate middleware
This commit is contained in:
commit
f9d5a498f5
1 changed files with 1 additions and 1 deletions
|
@ -503,7 +503,7 @@ class AppRouter {
|
|||
|
||||
this.firstConnectionResult = null;
|
||||
if (firstResult && firstResult.State === 'ServerSignIn') {
|
||||
const url = ApiClient.serverAddress() + '/System/Info/Public';
|
||||
const url = firstResult.ApiClient.serverAddress() + '/System/Info/Public';
|
||||
fetch(url).then(response => {
|
||||
if (!response.ok) return Promise.reject('fetch failed');
|
||||
return response.json();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue