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:
commit
2874505004
2
src/js/controls.js
vendored
2
src/js/controls.js
vendored
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user