chore(share): fix another typecheck issue

This commit is contained in:
Elian Doran 2025-10-26 10:07:42 +02:00
parent 0c399a676a
commit 1182592fc5
No known key found for this signature in database

View File

@ -9,6 +9,8 @@ export default async function setupMath() {
const renderMathInElement = (await import("katex/contrib/auto-render")).default;
await import("katex/contrib/mhchem");
renderMathInElement(document.getElementById("content"));
const contentEl = document.getElementById("content");
if (!contentEl) return;
renderMathInElement(contentEl);
document.body.classList.add("math-loaded");
}