Fix 'null' being appended after the video if controls is empty array

This commit is contained in:
Albin Larsson 2018-04-04 21:33:14 +02:00
parent ee79c46145
commit 10be94fa99

2
src/js/controls.js vendored
View File

@ -1233,7 +1233,7 @@ const controls = {
// Inject controls HTML // Inject controls HTML
if (utils.is.element(container)) { if (utils.is.element(container)) {
target.appendChild(container); target.appendChild(container);
} else { } else if (container) {
target.insertAdjacentHTML('beforeend', container); target.insertAdjacentHTML('beforeend', container);
} }