Allow Firefox to use web fonts when a local URL uses MathJax from the CDN

This commit is contained in:
Davide P. Cervone 2011-09-20 15:57:05 -04:00
parent 6910620f4a
commit a6a651c6bd
6 changed files with 6 additions and 6 deletions

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

View File

@ -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({