Skip to content

Commit 2d9cd83

Browse files
committed
Use original src for mglyph image rather than full URI (better for mathjax-node).
1 parent d1a178c commit 2d9cd83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unpacked/jax/output/SVG/autoload/mglyph.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
4646
def.transform = "translate(0,"+H+") matrix(1 0 0 -1 0 0)";
4747
def.preserveAspectRatio = "none";
4848
this.SUPER(arguments).Init.call(this,def);
49-
this.element.setAttributeNS(XLINKNS,"href",img.src);
49+
this.element.setAttributeNS(XLINKNS,"href",img.SRC);
5050
this.w = this.r = W; this.h = this.H = H + y;
5151
this.d = this.D = -y; this.l = 0;
5252
}
@@ -71,7 +71,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
7171
img = this.img.img;
7272
img.onload = MathJax.Callback(["SVGimgLoaded",this]);
7373
img.onerror = MathJax.Callback(["SVGimgError",this]);
74-
img.src = values.src;
74+
img.src = img.SRC = values.src;
7575
MathJax.Hub.RestartAfter(img.onload);
7676
}
7777
if (this.img.status !== "OK") {

0 commit comments

Comments
 (0)