Remove usage of innerHTML

This commit is contained in:
TheFeelTrain 2021-08-02 09:13:12 -07:00 committed by GitHub
parent da606315f7
commit ce437dbd58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,8 +184,10 @@ async function showSettingsModal() {
});
const legend = document.createElement("legend");
legend.innerHTML = "<h2>" + section.key + "</h2>";
legend.style.textTransform = "capitalize";
const legendHeader = document.createElement("h2");
legendHeader.textContent = section.key;
legendHeader.style.textTransform = "capitalize";
legend.appendChild(legendHeader);
group.appendChild(legend);
for (const setting of section.settings) {