extracted connectionManager from site.js
new module ServerConnections for ConnectionManager all code adapted to this new module removed Events and ConnectionManager from eslintrc
This commit is contained in:
parent
923d53bb71
commit
5071aedcea
81 changed files with 446 additions and 397 deletions
|
@ -1,4 +1,4 @@
|
|||
import { ConnectionManager } from 'jellyfin-apiclient';
|
||||
import ServerConnections from '../../components/ServerConnections';
|
||||
|
||||
export default class PhotoPlayer {
|
||||
constructor() {
|
||||
|
@ -13,7 +13,7 @@ export default class PhotoPlayer {
|
|||
import('../../components/slideshow/slideshow').then(({default: Slideshow}) => {
|
||||
var index = options.startIndex || 0;
|
||||
|
||||
var apiClient = window.ConnectionManager.currentApiClient();
|
||||
var apiClient = ServerConnections.currentApiClient();
|
||||
apiClient.getCurrentUser().then(function(result) {
|
||||
var newSlideShow = new Slideshow({
|
||||
showTitle: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue