Skip to content

Commit

Permalink
Merge pull request #13 from zarqman/fix-webpack-import
Browse files Browse the repository at this point in the history
Fix: videojs.getComponent is not a function / videojs is not defined
  • Loading branch information
jfujita authored Apr 5, 2019
2 parents 31b750a + f4ddea4 commit 8d15ccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/SourceMenuButton.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import videojs from 'video.js';
import SourceMenuItem from './SourceMenuItem';

const MenuButton = videojs.getComponent('MenuButton');
Expand Down
1 change: 1 addition & 0 deletions src/components/SourceMenuItem.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import videojs from 'video.js';
const MenuItem = videojs.getComponent('MenuItem');

class SourceMenuItem extends MenuItem
Expand Down

0 comments on commit 8d15ccf

Please sign in to comment.