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

Fix apiclient imports

This commit is contained in:
Bill Thornton 2020-09-08 02:05:02 -04:00 committed by vitorsemeano
parent 7d9208e951
commit a71b0314d4
71 changed files with 424 additions and 425 deletions

View file

@ -96,7 +96,7 @@ function initClient() {
import('../components/apphost'),
import('./settings/userSettings')
])
.then(([{ ConnectionManager, Credentials, events }, { appHost} , userSettings]) => {
.then(([{ ConnectionManager, Credentials, Events }, { appHost} , userSettings]) => {
var credentialProviderInstance = new Credentials();
var promises = [appHost.init()];
@ -105,7 +105,7 @@ function initClient() {
window.ConnectionManager = new ConnectionManager(credentialProviderInstance, appHost.appName(), appHost.appVersion(), appHost.deviceName(), appHost.deviceId(), capabilities);
bindConnectionManagerEvents(window.ConnectionManager, events, userSettings);
bindConnectionManagerEvents(window.ConnectionManager, Events, userSettings);
if (!AppInfo.isNativeApp) {
console.debug('loading ApiClient singleton');
@ -165,7 +165,7 @@ function initClient() {
import('jellyfin-apiclient')
])
.then(([ globalize, { ConnectionManager, events } ]) => {
events.on(ConnectionManager, 'localusersignedin', globalize.updateCurrentCulture);
Events.on(ConnectionManager, 'localusersignedin', globalize.updateCurrentCulture);
});
});
});