Skip to content

Commit

Permalink
fix: remove obsolete v5 compatiblity (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
mister-ben authored May 26, 2021
1 parent 59e7c71 commit 5068642
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions generators/app/templates/src/_plugin-basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import {version as VERSION} from '../package.json';
// Default options for the plugin.
const defaults = {};

// Cross-compatibility for Video.js 5 and 6.
const registerPlugin = videojs.registerPlugin || videojs.plugin;
// const dom = videojs.dom || videojs;

/**
* Function to invoke when the player is ready.
*
Expand Down Expand Up @@ -45,7 +41,7 @@ const <%= pluginFunctionName %> = function(options) {
};

// Register the plugin with video.js.
registerPlugin('<%= pluginFunctionName %>', <%= pluginFunctionName %>);
videojs.registerPlugin('<%= pluginFunctionName %>', <%= pluginFunctionName %>);

// Include the version number.
<%= pluginFunctionName %>.VERSION = VERSION;
Expand Down

0 comments on commit 5068642

Please sign in to comment.