summaryrefslogtreecommitdiff
path: root/scripts/gui
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gui')
-rw-r--r--scripts/gui/input.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gui/input.js b/scripts/gui/input.js
index 2925a1f..2ceb6f3 100644
--- a/scripts/gui/input.js
+++ b/scripts/gui/input.js
@@ -226,7 +226,7 @@ class MakeInput {
static titleWrap(el, title) {
var wrapper = document.createElement("div");
wrapper.className = "input-title-wrapper";
- wrapper.setAttribute("type", el.getAttribute(type));
+ wrapper.setAttribute("type", el.getAttribute("type"));
wrapper.setAttribute("data-title", title);
wrapper.appendChild(el);