Skip to content

Commit

Permalink
Remove dynamic import (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarciabriseno authored Nov 9, 2023
1 parent 51dc360 commit 708afce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/Media/MovieManagerUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ newcap: true, immed: true, maxlen: 80, sub: true */
import ReactDOM from 'react-dom/client';
import React from 'react';
import { MediaManagerUI } from './MediaManagerUI';
import { VideoPlayer } from './VideoPlayer';

var MovieManagerUI = MediaManagerUI.extend(
/** @lends MovieManagerUI */
Expand Down Expand Up @@ -993,7 +994,6 @@ var MovieManagerUI = MediaManagerUI.extend(
* method
*/
getVideoPlayerHTML: async function (movie, width, height) {
const { VideoPlayer } = (await import('./VideoPlayer'));
// Initialize YouTube upload button
let onYoutubeBtnClick = () => {this.showYouTubeUploadDialog(movie); return false;}
return <VideoPlayer movie={movie} width={width} height={height} onClickYoutubeBtn={onYoutubeBtnClick} />;
Expand Down

0 comments on commit 708afce

Please sign in to comment.