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

check server for null

This commit is contained in:
Luke Pulverenti 2016-03-16 14:53:09 -04:00
parent 59b578e8fe
commit 74505accb3

View file

@ -1507,7 +1507,9 @@ var AppInfo = {};
if (!localApiClient) {
var server = connectionManager.getLastUsedServer();
localApiClient = connectionManager.getApiClient(server.Id);
if (server) {
localApiClient = connectionManager.getApiClient(server.Id);
}
}
return localApiClient;
};