fixing root cause of flaky js test for discussions.
This commit is contained in:
@@ -485,7 +485,7 @@
|
||||
};
|
||||
|
||||
DiscussionUtil.typesetMathJax = function(element) {
|
||||
if (typeof MathJax !== 'undefined' && MathJax !== null && MathJax.Hub !== 'undefined') {
|
||||
if (typeof MathJax !== 'undefined' && MathJax !== null && typeof MathJax.Hub !== 'undefined') {
|
||||
MathJax.Hub.Queue(['Typeset', MathJax.Hub, element[0]]);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user