# HG changeset patch # User HIROSE Yuuji # Date 1640302765 -32400 # Node ID 193d9d2ed9c9bc5c6b9c2e21a9416f227909c72f # Parent a0b1e62df613fad2e7a443d46b20060fb92168bf Avoid "not defined" exception for MathJax diff -r a0b1e62df613 -r 193d9d2ed9c9 s4-main.js --- 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;