diff options
author | Sam Potts <sam@potts.es> | 2019-04-30 23:44:05 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2019-04-30 23:44:05 +1000 |
commit | 80aa6ffe435b170466838f977d52438a95e22186 (patch) | |
tree | 0243268c1dd2af2ded86c03f2ea222032cb58527 /src/js/plugins/youtube.js | |
parent | 0694e586502f7ce85ce7858b67d515403b48c87e (diff) | |
download | plyr-80aa6ffe435b170466838f977d52438a95e22186.tar.lz plyr-80aa6ffe435b170466838f977d52438a95e22186.tar.xz plyr-80aa6ffe435b170466838f977d52438a95e22186.zip |
Linting changes
Diffstat (limited to 'src/js/plugins/youtube.js')
-rw-r--r-- | src/js/plugins/youtube.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/js/plugins/youtube.js b/src/js/plugins/youtube.js index 7abc05fe..a5b1dafd 100644 --- a/src/js/plugins/youtube.js +++ b/src/js/plugins/youtube.js @@ -107,7 +107,6 @@ const youtube = { // API ready ready() { const player = this; - // Ignore already setup (race condition) const currentId = player.media.getAttribute('id'); if (!is.empty(currentId) && currentId.startsWith('youtube-')) { @@ -125,10 +124,8 @@ const youtube = { // Replace the <iframe> with a <div> due to YouTube API issues const videoId = parseId(source); const id = generateId(player.provider); - // Get poster, if already set const { poster } = player; - // Replace media element const container = createElement('div', { id, poster }); player.media = replaceElement(container, player.media); |