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

return after navigating to wizard

This commit is contained in:
dkanada 2020-11-07 15:16:39 +09:00
parent 69439bbff0
commit 1c1f5c09b7

View file

@ -506,7 +506,7 @@ class AppRouter {
const firstResult = this.firstConnectionResult; const firstResult = this.firstConnectionResult;
this.firstConnectionResult = null; this.firstConnectionResult = null;
if (firstResult && firstResult.State === 'ServerSignIn' && !route.anonymous) { if (firstResult && firstResult.State === 'ServerSignIn') {
const url = ApiClient.serverAddress() + '/System/Info/Public'; const url = ApiClient.serverAddress() + '/System/Info/Public';
fetch(url).then(response => { fetch(url).then(response => {
if (!response.ok) return Promise.reject('fetch failed'); if (!response.ok) return Promise.reject('fetch failed');
@ -520,6 +520,8 @@ class AppRouter {
}).catch(error => { }).catch(error => {
console.error(error); console.error(error);
}); });
return;
} }
const apiClient = window.connectionManager.currentApiClient(); const apiClient = window.connectionManager.currentApiClient();