diff --git a/src/components/photoplayer/plugin.js b/src/components/photoplayer/plugin.js index 8b980f3b16..63dd2e4fbd 100644 --- a/src/components/photoplayer/plugin.js +++ b/src/components/photoplayer/plugin.js @@ -22,24 +22,24 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa var index = options.startIndex || 0; var apiClient = connectionManager.currentApiClient(); - - apiClient.getCurrentUser().then(function(result){ - - var newSlideShow = new slideshow({ - showTitle: false, - cover: false, - items: options.items, - startIndex: index, - interval: 11000, - interactive: true, - user: result - }); - - newSlideShow.show(); - - resolve(); + + apiClient.getCurrentUser().then(function(result){ + + var newSlideShow = new slideshow({ + showTitle: false, + cover: false, + items: options.items, + startIndex: index, + interval: 11000, + interactive: true, + user: result }); + + newSlideShow.show(); + + resolve(); }); + }); }); };