Merge pull request #256 from MrSnowflake/develop
In specific cases Plyr fails to initiate YT: YT.Player is not a constructor
This commit is contained in:
commit
24bc415faf
@ -1382,7 +1382,7 @@
|
|||||||
container.setAttribute('id', id);
|
container.setAttribute('id', id);
|
||||||
|
|
||||||
// Setup API
|
// Setup API
|
||||||
if (typeof YT === 'object') {
|
if (typeof YT === 'object' && YT.loaded !== 0) {
|
||||||
_youTubeReady(mediaId, container);
|
_youTubeReady(mediaId, container);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user