Add option to not show MathPlayer alert (helps with testsuite)

This commit is contained in:
Davide P. Cervone 2014-05-05 07:55:16 -04:00
parent 49ede41339
commit 085c80054c

View File

@ -195,6 +195,7 @@
// //
// If that fails, give an alert about security settings // If that fails, give an alert about security settings
// //
if (!this.config.noMathPlayerWarning) {
alert(MathJax.Localization._(["MathML", "MathPlayer"], alert(MathJax.Localization._(["MathML", "MathPlayer"],
"MathJax was not able to set up MathPlayer.\n\n"+ "MathJax was not able to set up MathPlayer.\n\n"+
"If MathPlayer is not installed, you need to install it first.\n"+ "If MathPlayer is not installed, you need to install it first.\n"+
@ -207,6 +208,7 @@
"Currently you will see error messages rather than\n"+ "Currently you will see error messages rather than\n"+
"typeset mathematics.")); "typeset mathematics."));
} }
}
} else { } else {
// //
// Get the default sizes (need styles in place to do this) // Get the default sizes (need styles in place to do this)