Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
fix: export default the plugin, and fix vesion reported (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Sep 18, 2018
1 parent a25c5ae commit ea40cb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* @module plugin
*/
import videojs from 'video.js';
import {version as VERSION} from '../package.json';

// vjs 5/6 cross compatibility.
const registerPlugin = videojs.registerPlugin || videojs.plugin;
Expand Down Expand Up @@ -170,6 +171,6 @@ function contextmenu(options) {
}

registerPlugin('contextmenu', contextmenu);
contextmenu.VERSION = '__VERSION__';
contextmenu.VERSION = VERSION;

export default contextmenu;

0 comments on commit ea40cb5

Please sign in to comment.