const instead of let

This commit is contained in:
Mylloon 2024-03-31 20:34:12 +02:00
parent f38d3e4cc1
commit 0e6b66d52f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -17,7 +17,7 @@ window.addEventListener("load", () => {
} }
const attribute = "data-math-style"; const attribute = "data-math-style";
for (let element of document.querySelectorAll(`span[${attribute}]`)) { for (const element of document.querySelectorAll(`span[${attribute}]`)) {
katex.render(element.textContent, element, { katex.render(element.textContent, element, {
throwOnError: false, throwOnError: false,
displayMode: element.getAttribute(attribute) === "display", displayMode: element.getAttribute(attribute) === "display",