diff options
author | Sam Potts <sam@potts.es> | 2017-11-14 13:22:23 +0100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2017-11-14 13:22:23 +0100 |
commit | 022b436c3f51d6a1a9bdf29ff9d34325389ecc82 (patch) | |
tree | e7ff7a75862bbcdad889d233723fd07251a9a4e7 /src | |
parent | 6058bb0245fc940ba033cfbb1112e70ba126b304 (diff) | |
download | plyr-022b436c3f51d6a1a9bdf29ff9d34325389ecc82.tar.lz plyr-022b436c3f51d6a1a9bdf29ff9d34325389ecc82.tar.xz plyr-022b436c3f51d6a1a9bdf29ff9d34325389ecc82.zip |
YouTube fix
Diffstat (limited to 'src')
-rw-r--r-- | src/js/plugins/youtube.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/js/plugins/youtube.js b/src/js/plugins/youtube.js index da127bed..9cd567fe 100644 --- a/src/js/plugins/youtube.js +++ b/src/js/plugins/youtube.js @@ -207,7 +207,9 @@ const youtube = { } // Set title - player.config.title = instance.getVideoData().title; + if (utils.is.function(instance.getVideoData)) { + player.config.title = instance.getVideoData().title; + } // Set the tabindex to avoid focus entering iframe if (player.supported.ui) { |