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

Update ApiClient instance used by SyncPlay manager

This commit is contained in:
Ionut Andrei Oanca 2021-09-07 01:00:23 +02:00
parent 7d880f07ce
commit f0d483dee3
2 changed files with 15 additions and 5 deletions

View file

@ -172,6 +172,8 @@ function initSyncPlay() {
// FIXME: Multiple apiClients?
Events.on(ServerConnections, 'apiclientcreated', (e, newApiClient) => SyncPlay.Manager.init(newApiClient));
Events.on(ServerConnections, 'localusersignedin', () => SyncPlay.Manager.updateApiClient(ServerConnections.currentApiClient()));
Events.on(ServerConnections, 'localusersignedout', () => SyncPlay.Manager.updateApiClient(ServerConnections.currentApiClient()));
}
async function onAppReady() {