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:
parent
7d880f07ce
commit
f0d483dee3
2 changed files with 15 additions and 5 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue