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:
parent
257a7d2879
commit
a8ef5994d8
20 changed files with 482 additions and 452 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue