s4
changeset 980:f0b63223cb80
Call initReplyHover after mathjax initialization
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 31 May 2022 11:52:46 +0900 |
parents | 084326d5ba19 |
children | eb51a80f73c2 |
files | s4-main.js |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/s4-main.js Sun May 29 12:13:00 2022 +0900 1.2 +++ b/s4-main.js Tue May 31 11:52:46 2022 +0900 1.3 @@ -1079,7 +1079,10 @@ 1.4 initTextarea(); 1.5 initGrphome(); 1.6 initMath(); 1.7 - initReplyHover(); 1.8 + if (mathjax && MathJax.startup) 1.9 + MathJax.startup.promise.then(()=>initReplyHover()); 1.10 + else 1.11 + initReplyHover(); 1.12 } 1.13 document.addEventListener('DOMContentLoaded', init, null); 1.14 })();