aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/controls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index 17d197c5..879fd3fc 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -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);
}