mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update imports for photo player
This commit is contained in:
parent
210dbd6d06
commit
70ab8af6e7
1 changed files with 1 additions and 9 deletions
|
@ -1,11 +1,3 @@
|
||||||
import browser from 'browser';
|
|
||||||
import require from 'require';
|
|
||||||
import events from 'events';
|
|
||||||
import appHost from 'apphost';
|
|
||||||
import loading from 'loading';
|
|
||||||
import dom from 'dom';
|
|
||||||
import playbackManager from 'playbackManager';
|
|
||||||
import appRouter from 'appRouter';
|
|
||||||
import connectionManager from 'connectionManager';
|
import connectionManager from 'connectionManager';
|
||||||
|
|
||||||
export class PhotoPlayer {
|
export class PhotoPlayer {
|
||||||
|
@ -20,7 +12,7 @@ export class PhotoPlayer {
|
||||||
|
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
|
|
||||||
require(['slideshow'], function (slideshow) {
|
import('slideshow').then(slideshow => {
|
||||||
|
|
||||||
var index = options.startIndex || 0;
|
var index = options.startIndex || 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue