Mercurial > hgrepos > hgweb.cgi > s4
changeset 959:193d9d2ed9c9 draft
Avoid "not defined" exception for MathJax
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Fri, 24 Dec 2021 08:39:25 +0900 |
parents | a0b1e62df613 |
children | 0d9caeab3d81 |
files | s4-main.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-main.js Fri Dec 24 08:28:29 2021 +0900 +++ b/s4-main.js Fri Dec 24 08:39:25 2021 +0900 @@ -970,7 +970,7 @@ } } function initMath() { - mathjax = MathJax||document.getElementById("mathjax"); + mathjax = window.MathJax||document.getElementById("mathjax"); if (!mathjax) return; let ta = document.querySelector("textarea"); if (!ta) return;