Fix 'null' being appended after the video if controls is empty array
This commit is contained in:
parent
ee79c46145
commit
10be94fa99
2
src/js/controls.js
vendored
2
src/js/controls.js
vendored
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user