Mercurial > hgrepos > hgweb.cgi > s4
changeset 980:f0b63223cb80 draft
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 wrap: on
line diff
--- a/s4-main.js Sun May 29 12:13:00 2022 +0900 +++ b/s4-main.js Tue May 31 11:52:46 2022 +0900 @@ -1079,7 +1079,10 @@ initTextarea(); initGrphome(); initMath(); - initReplyHover(); + if (mathjax && MathJax.startup) + MathJax.startup.promise.then(()=>initReplyHover()); + else + initReplyHover(); } document.addEventListener('DOMContentLoaded', init, null); })();