fixing root cause of flaky js test for discussions.

This commit is contained in:
SaadYousaf
2020-04-23 16:26:32 +05:00
parent ff51a936d5
commit 2bc5f1b16e

View File

@@ -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]]);
}
};