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:
parent
0eba42756b
commit
85bf53d4c5
File diff suppressed because one or more lines are too long
|
@ -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}}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user