Allow Firefox to use web fonts when a local URL uses MathJax from the CDN
This commit is contained in:
parent
6910620f4a
commit
a6a651c6bd
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2503,7 +2503,7 @@
|
|||
var webFonts = false;
|
||||
if (browser.versionAtLeast("3.5")) {
|
||||
var root = String(document.location).replace(/[^\/]*$/,"");
|
||||
if (document.location.protocol !== "file:" ||
|
||||
if (document.location.protocol !== "file:" || HUB.config.root.match(/^https?:\/\//) ||
|
||||
(HUB.config.root+"/").substr(0,root.length) === root) {webFonts = "otf"}
|
||||
}
|
||||
HTMLCSS.Augment({
|
||||
|
|
Loading…
Reference in New Issue
Block a user