Fix problem with configuring iPhone/iTouch/iPad when configuration file has no HTML-CSS section
This commit is contained in:
parent
965499810a
commit
f7194c2340
File diff suppressed because one or more lines are too long
|
@ -2130,7 +2130,8 @@
|
||||||
// Force image mode for iPhone and Droid
|
// Force image mode for iPhone and Droid
|
||||||
// FIXME: need to work more on this
|
// FIXME: need to work more on this
|
||||||
var config = MathJax.Hub.config["HTML-CSS"];
|
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