From 4e15b71d5bd736246c623d5e0bd0b091ba5f1937 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sun, 8 Jan 2023 20:28:50 -0800 Subject: [PATCH] fix another variable name conflict --- scripts/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config.js b/scripts/config.js index 4495d08..02c98e0 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -65,7 +65,7 @@ function addResourceLine (fieldset, iconHref, labelText, inputAttr, unitText=nul } } -function addDiskLine (fieldset, id, iconHref, labelText, value) { +function addDiskLine (fieldset, id, iconHref, labelText, valueText) { let field = document.querySelector(`#${fieldset}`); let icon = document.createElement("img"); @@ -77,6 +77,6 @@ function addDiskLine (fieldset, id, iconHref, labelText, value) { field.append(label); let value = document.createElement("p"); - value.innerText = value; + value.innerText = valueText; field.append(value); } \ No newline at end of file