Skip to content

Commit

Permalink
Fix warning for tech
Browse files Browse the repository at this point in the history
  • Loading branch information
eXon committed Feb 3, 2016
1 parent d0ba3f2 commit eefebf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,10 +621,10 @@ THE SOFTWARE. */
loadApi();
injectCss();

videojs.registerComponent('Youtube', Youtube);

// Older versions of VJS5 doesn't have the registerTech function
if (typeof videojs.registerTech !== 'undefined') {
videojs.registerTech('Youtube', Youtube);
} else {
videojs.registerComponent('Youtube', Youtube);
}
}));

0 comments on commit eefebf8

Please sign in to comment.