Skip to content

Commit 93e05ef

Browse files
authored
Merge pull request #2014 from dpvc/issue2005
Fix crash and missing text in recent Safari versions. #2005
2 parents 98549a9 + 204ffbb commit 93e05ef

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

unpacked/jax/output/CommonHTML/jax.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@
628628
//
629629
if (data.preview) {
630630
data.preview.innerHTML = "";
631-
data.preview.style.display = "none";
632631
script.MathJax.preview = data.preview;
633632
delete data.preview;
634633
}

unpacked/jax/output/HTML-CSS/jax.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -798,10 +798,7 @@
798798
if (script && script.parentNode && script.MathJax.elementJax) {
799799
var div = (script.MathJax.elementJax.HTMLCSS||{}).div;
800800
if (div) {div.className = div.className.split(/ /)[0]}
801-
if (script.MathJax.preview) {
802-
script.MathJax.preview.innerHTML = "";
803-
script.MathJax.preview.style.display = "none";
804-
}
801+
if (script.MathJax.preview) script.MathJax.preview.innerHTML = "";
805802
}
806803
}
807804
//

unpacked/jax/output/PreviewHTML/jax.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@
268268
//
269269
if (data.preview) {
270270
data.preview.innerHTML = "";
271-
data.preview.style.display = "none";
272271
script.MathJax.preview = data.preview;
273272
delete data.preview;
274273
}

unpacked/jax/output/SVG/jax.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@
433433
//
434434
if (data.preview) {
435435
data.preview.innerHTML = "";
436-
data.preview.style.display = "none";
437436
script.MathJax.preview = data.preview;
438437
delete data.preview;
439438
}

0 commit comments

Comments
 (0)