Don't try to typset mathjax if Hub has not loaded.

In our tests there are times when Mathjax has been initialized but
Hub is still undefied.  In this case don't queue up typesetting.
This commit is contained in:
Feanil Patel
2019-12-26 16:13:58 -05:00
parent 979e7ea653
commit ff40369990

View File

@@ -485,7 +485,7 @@
};
DiscussionUtil.typesetMathJax = function(element) {
if (typeof MathJax !== 'undefined' && MathJax !== null) {
if (typeof MathJax !== 'undefined' && MathJax !== null && MathJax.Hub !== 'undefined') {
MathJax.Hub.Queue(['Typeset', MathJax.Hub, element[0]]);
}
};