1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
This commit is contained in:
MrTimscampi 2020-08-16 20:24:45 +02:00 committed by vitorsemeano
parent 96eccd2ecd
commit 7d9208e951
143 changed files with 1000 additions and 1008 deletions

View file

@ -1,10 +1,9 @@
import connectionManager from 'jellyfin-apiclient';
import playbackManager from '../components/playback/playbackmanager';
import { playbackManager } from '../components/playback/playbackmanager';
import syncPlayManager from '../components/syncPlay/syncPlayManager';
import events from 'jellyfin-apiclient';
import { events } from 'jellyfin-apiclient';
import inputManager from '../scripts/inputManager';
import focusManager from '../components/focusManager';
import appRouter from '../components/appRouter';
import { appRouter } from '../components/appRouter';
const serverNotifications = {};
@ -208,8 +207,8 @@ function bindEvents(apiClient) {
events.on(apiClient, 'message', onMessageReceived);
}
window.connectionManager.getApiClients().forEach(bindEvents);
events.on(window.connectionManager, 'apiclientcreated', function (e, newApiClient) {
window.ConnectionManager.getApiClients().forEach(bindEvents);
events.on(window.ConnectionManager, 'apiclientcreated', function (e, newApiClient) {
bindEvents(newApiClient);
});