mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 21:07:05 -06:00
chore(share): fix another typecheck issue
This commit is contained in:
parent
0c399a676a
commit
1182592fc5
@ -9,6 +9,8 @@ export default async function setupMath() {
|
|||||||
const renderMathInElement = (await import("katex/contrib/auto-render")).default;
|
const renderMathInElement = (await import("katex/contrib/auto-render")).default;
|
||||||
await import("katex/contrib/mhchem");
|
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");
|
document.body.classList.add("math-loaded");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user