Add NoMathPlayer parameter to prevent the MathPlayer setup when the page is loaded (users can still switch to NativeMML and the setup will be done at that point).

This commit is contained in:
Davide P. Cervone 2012-02-11 10:28:56 -05:00
parent 30db94c01e
commit 5cafb84908
3 changed files with 4 additions and 53 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2382,7 +2382,7 @@ MathJax.Hub.Startup = {
MathJax.HTML.setScriptBug = !browser.isIE9 || document.documentMode < 9;
var MathPlayer = false;
try {new ActiveXObject("MathPlayer.Factory.1"); MathPlayer = true} catch(err) {}
if (MathPlayer) {
if (MathPlayer && !STARTUP.params.NoMathPlayer) {
var mathplayer = document.createElement("object");
mathplayer.id = "mathplayer"; mathplayer.classid = "clsid:32F66A20-7614-11D4-BD11-00104BD3F987";
document.getElementsByTagName("head")[0].appendChild(mathplayer);