Skip to content

Commit

Permalink
Fixed typo to invoke library
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Miranda committed Apr 12, 2022
1 parent bfeab7a commit 7649bda
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dist/openplayerjs-youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,8 @@ var YouTube = function YouTube(element, media) {
});
};

if (OpenPlayer) {
OpenPlayer.addMedia('youtube', 'video/x-youtube', function (url) {
if (OpenPlayerJS) {
OpenPlayerJS.addMedia('youtube', 'video/x-youtube', function (url) {
return /\/\/(www\.youtube|youtu\.?be)/i.test(url) ? 'video/x-youtube' : null;
}, YouTube);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/openplayerjs-youtube.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ const YouTube = (element, media, autoplay = false, options = {}) => {
});
};

if (OpenPlayer) {
OpenPlayer.addMedia(
if (OpenPlayerJS) {
OpenPlayerJS.addMedia(
'youtube',
'video/x-youtube',
url => (/\/\/(www\.youtube|youtu\.?be)/i.test(url) ? 'video/x-youtube' : null),
Expand Down

0 comments on commit 7649bda

Please sign in to comment.