aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/plyr.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 6f5b4aeb..d6b16b7b 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1382,7 +1382,7 @@
container.setAttribute('id', id);
// Setup API
- if (typeof YT === 'object') {
+ if (typeof YT === 'object' && YT.loaded !== 0) {
_youTubeReady(mediaId, container);
}
else {