Skip to content

Commit a6cdc42

Browse files
committed
fix: HUB.Startup.signal.Post() API expects a single message STRING, so we must concatenate parts into a single string before queueing a call to this API. Fixes crash in HUB.Startup.signal.Post() itself where code expects a string type call parameter, rather than an array type parameter.
1 parent 63672ed commit a6cdc42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

unpacked/jax/output/CommonHTML/jax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@
343343
if (!font.match(/-|fontdata/)) font += "-Regular";
344344
if (!font.match(/\.js$/)) font += ".js"
345345
MathJax.Callback.Queue(
346-
["Post",HUB.Startup.signal,["CommonHTML - font data loaded",font]],
346+
["Post",HUB.Startup.signal,"CommonHTML - font data loaded for " + font],
347347
["loadComplete",AJAX,this.fontDir+"/"+font]
348348
);
349349
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
},
198198
loadError: function (font) {
199199
MESSAGE(["CantLoadWebFont","Can't load web font %1",HTMLCSS.fontInUse+"/"+font.directory],null,2000);
200-
HUB.Startup.signal.Post(["HTML-CSS Jax - web font error",HTMLCSS.fontInUse+"/"+font.directory,font]);
200+
HUB.Startup.signal.Post("HTML-CSS Jax - web font error for " + HTMLCSS.fontInUse+"/"+font.directory);
201201
},
202202
firefoxFontError: function (font) {
203203
MESSAGE(["FirefoxCantLoadWebFont","Firefox can't load web fonts from a remote host"],null,3000);

0 commit comments

Comments
 (0)