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

Fix use of global ApiClient in authenticate middleware

This commit is contained in:
Bill Thornton 2020-11-30 00:00:43 -05:00
parent e56414ebe8
commit 8668c1511d

View file

@ -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();