mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07: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
@ -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…
Reference in New Issue
Block a user