Skip to content

Commit beff612

Browse files
committed
Use web-fonts by default for unknown browsers. Addresses issue #317.
1 parent be28147 commit beff612

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

unpacked/MathJax.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2334,9 +2334,12 @@ MathJax.Hub.Startup = {
23342334
isMac: (navigator.platform.substr(0,3) === "Mac"),
23352335
isPC: (navigator.platform.substr(0,3) === "Win"),
23362336
isMSIE: (window.ActiveXObject != null && window.clipboardData != null),
2337-
isFirefox: (window.netscape != null && document.ATTRIBUTE_NODE != null && !window.opera),
2337+
/*
2338+
isFirefox: ((window.netscape != null || window.mozPaintCount != null) &&
2339+
document.ATTRIBUTE_NODE != null && !window.opera),
23382340
isSafari: (navigator.userAgent.match(/ (Apple)?WebKit\//) != null &&
23392341
(!window.chrome || window.chrome.loadTimes == null)),
2342+
*/
23402343
isChrome: (window.chrome != null && window.chrome.loadTimes != null),
23412344
isOpera: (window.opera != null && window.opera.version != null),
23422345
isKonqueror: (window.hasOwnProperty && window.hasOwnProperty("konqueror") && navigator.vendor == "KDE"),

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,9 @@
292292

293293
hideProcessedMath: true, // use display:none until all math is processed
294294

295-
Font: null, // created by Config() below
295+
Font: null, // created by Config() below
296296
webFontDefault: "MathJax_Blank",
297+
allowWebFonts: "otf", // assume browser can use OTF web fonts
297298

298299
Config: function () {
299300
if (!this.require) {this.require = []}

0 commit comments

Comments
 (0)