s4
diff s4-main.js @ 959:193d9d2ed9c9
Avoid "not defined" exception for MathJax
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Fri, 24 Dec 2021 08:39:25 +0900 |
parents | ab78a6e229a6 |
children | 0d9caeab3d81 |
line diff
1.1 --- a/s4-main.js Mon Nov 08 18:17:18 2021 +0900 1.2 +++ b/s4-main.js Fri Dec 24 08:39:25 2021 +0900 1.3 @@ -970,7 +970,7 @@ 1.4 } 1.5 } 1.6 function initMath() { 1.7 - mathjax = MathJax||document.getElementById("mathjax"); 1.8 + mathjax = window.MathJax||document.getElementById("mathjax"); 1.9 if (!mathjax) return; 1.10 let ta = document.querySelector("textarea"); 1.11 if (!ta) return;