upgrade autocast to es6
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import playbackManager from '../components/playback/playbackmanager';
|
||||
import { playbackManager } from '../components/playback/playbackmanager';
|
||||
import ServerConnections from '../components/ServerConnections';
|
||||
|
||||
export function supported() {
|
||||
return typeof(Storage) !== 'undefined';
|
||||
@@ -41,7 +42,8 @@ function onOpen() {
|
||||
});
|
||||
}
|
||||
|
||||
const apiClient = window.connectionManager.currentApiClient();
|
||||
const apiClient = ServerConnections.currentApiClient();
|
||||
|
||||
if (apiClient && supported()) {
|
||||
Events.on(apiClient, 'websocketopen', onOpen);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user