mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Don't use bad ApiClient
This commit is contained in:
parent
ac0c064841
commit
644f00832f
1 changed files with 4 additions and 1 deletions
|
@ -169,8 +169,11 @@ function initSyncPlay() {
|
||||||
|
|
||||||
// Start SyncPlay.
|
// Start SyncPlay.
|
||||||
const apiClient = ServerConnections.currentApiClient();
|
const apiClient = ServerConnections.currentApiClient();
|
||||||
SyncPlay.Manager.init(apiClient);
|
if (apiClient) SyncPlay.Manager.init(apiClient);
|
||||||
SyncPlayToasts.init();
|
SyncPlayToasts.init();
|
||||||
|
|
||||||
|
// FIXME: Multiple apiClients?
|
||||||
|
Events.on(ServerConnections, 'apiclientcreated', (e, newApiClient) => SyncPlay.Manager.init(newApiClient));
|
||||||
}
|
}
|
||||||
|
|
||||||
function onAppReady() {
|
function onAppReady() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue