Bug fixes

This commit is contained in:
Sam Potts 2017-05-07 20:17:36 +10:00
parent 28dddfcff2
commit 279fee3595
2 changed files with 4 additions and 6 deletions

4
dist/plyr.js vendored

File diff suppressed because one or more lines are too long

View File

@ -498,7 +498,8 @@
// Remove an element // Remove an element
removeElement: function(element) { removeElement: function(element) {
if (!is.htmlElement(element)) { if (!is.htmlElement(element) ||
!is.htmlElement(element.parentNode)) {
return; return;
} }
@ -2341,9 +2342,6 @@
}; };
} }
} else if (player.type === 'vimeo') { } else if (player.type === 'vimeo') {
// Vimeo needs an extra div to hide controls on desktop (which has full support)
utils.wrap(player.elements.media, utils.createElement('div'));
// Set ID // Set ID
player.elements.media.setAttribute('id', id); player.elements.media.setAttribute('id', id);