Skip to content

Commit 9b8d1ce

Browse files
authored
Merge pull request #1889 from GerHobbelt/patch-2
fix `HUB.Startup.signal.Post()` queued invocations: API expects STRING param, received ARRAY instead
2 parents 62ee1ea + a6cdc42 commit 9b8d1ce

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)