aboutsummaryrefslogtreecommitdiff
path: root/webAO/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/ui.js')
-rw-r--r--webAO/ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/ui.js b/webAO/ui.js
index c3a41585..1afd4615 100644
--- a/webAO/ui.js
+++ b/webAO/ui.js
@@ -194,7 +194,7 @@ golden.registerComponentFactoryFunction(
"template",
(container, componentState) => {
const template = document.querySelector(`#${componentState.id}`);
- container.element.innerHTML = template.innerHTML;
+ container.element.replaceChildren(template.content.cloneNode(true));
},
);
if (isMobileDevice) {