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

update build scripts

This commit is contained in:
Luke Pulverenti 2015-09-22 12:06:27 -04:00
parent 257a7d2879
commit a8ef5994d8
20 changed files with 482 additions and 452 deletions

View file

@ -253,27 +253,12 @@
Events.trigger(self, 'apiclientcreated', [apiClient]);
}
if (server.AccessToken && server.UserId) {
apiClient.setAuthenticationInfo(server.AccessToken, server.UserId);
}
else {
apiClient.clearAuthenticationInfo();
}
logger.log('returning instance from getOrAddApiClient');
return apiClient;
}
self.getOrCreateApiClient = function (serverId) {
var apiClient = self.getApiClient(serverId);
if (apiClient) {
return apiClient;
}
var credentials = credentialProvider.credentials();
var servers = credentials.Servers.filter(function (s) {
return stringEqualsIgnoreCase(s.Id, serverId);