From 70ab8af6e76e412799e619f854c591a6b424878a Mon Sep 17 00:00:00 2001 From: dkanada Date: Thu, 28 May 2020 18:32:53 +0900 Subject: [PATCH] update imports for photo player --- src/components/photoPlayer/plugin.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/photoPlayer/plugin.js b/src/components/photoPlayer/plugin.js index aa5464d77c..bdb0214da3 100644 --- a/src/components/photoPlayer/plugin.js +++ b/src/components/photoPlayer/plugin.js @@ -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'; export class PhotoPlayer { @@ -20,7 +12,7 @@ export class PhotoPlayer { return new Promise(function (resolve, reject) { - require(['slideshow'], function (slideshow) { + import('slideshow').then(slideshow => { var index = options.startIndex || 0;