Merge pull request #868 from friday/null-no-controls

Fix string "null" being appended after the video if controls argument is empty.
This commit is contained in:
Sam Potts 2018-04-05 09:19:05 +10:00 committed by GitHub
commit 2874505004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
src/js/controls.js vendored
View File

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