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

git-svn-id: https://mathjax.svn.sourceforge.net/svnroot/mathjax/trunk@549 b8fd5906-0fad-46e2-a0d3-10d94ff285d1
This commit is contained in:
Davide Cervone 2010-08-02 20:50:01 +00:00
parent 0eba42756b
commit 85bf53d4c5
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}}
}
},