Fix problem with configuring iPhone/iTouch/iPad when configuration file has no HTML-CSS section

This commit is contained in:
dpvc 2010-08-02 20:50:01 +00:00
parent 965499810a
commit f7194c2340
2 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -2130,7 +2130,8 @@
// Force image mode for iPhone and Droid
// FIXME: need to work more on this
var config = MathJax.Hub.config["HTML-CSS"];
config.availableFonts = []; config.preferredFont = null;
if (config) {config.availableFonts = []; config.preferredFont = null}
else {MathJax.Hub.config["HTML-CSS"] = {availableFonts: [], preferredFont: null}}
}
},