Skip to content

Commit

Permalink
orsharir#32 Allow MathJax in PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alf239 committed Apr 13, 2020
1 parent dd6611e commit 819b7da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dynamic_math.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
function render_preview() {
$(".js-preview-tab").on("click", function(e) {
function didLoadPreview() {
if (!$(".js-preview-tab").hasClass('selected')) {
let tab = $(".js-preview-tab");
if (!tab.hasClass('selected') && !tab.attr("aria-selected")) {
return;
}
if ($(".preview-content").attr('display') == 'none') {
Expand Down

0 comments on commit 819b7da

Please sign in to comment.