From 0e6b66d52fd786b6bbcf97e2fcbffe3f0852f6da Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 31 Mar 2024 20:34:12 +0200 Subject: [PATCH] const instead of let --- static/js/libs/katex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/libs/katex.js b/static/js/libs/katex.js index bb220db..6cf3147 100644 --- a/static/js/libs/katex.js +++ b/static/js/libs/katex.js @@ -17,7 +17,7 @@ window.addEventListener("load", () => { } 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, { throwOnError: false, displayMode: element.getAttribute(attribute) === "display",