Make eslint happy.

This commit is contained in:
Guo Xiang Tan 2017-08-02 18:18:43 +09:00
parent 00dd5f1276
commit 669f756b34
1 changed files with 6 additions and 3 deletions

View File

@ -8,16 +8,19 @@ function initMathJax() {
if (initializedMathJax) { return; }
var extensions = ["toMathML.js", "Safe.js"];
if(enable_accessibility) {
extensions.push("[a11y]/accessibility-menu.js")
if (enable_accessibility) {
extensions.push("[a11y]/accessibility-menu.js");
}
var settings = {
jax: ['input/TeX', 'input/AsciiMath', 'input/MathML', 'output/CommonHTML'],
TeX: {extensions: ["AMSmath.js", "AMSsymbols.js", "autoload-all.js"]},
extensions: extensions,
showProcessingMessages: false,
root: '/plugins/discourse-math/mathjax'
}
};
if(zoom_on_hover) {
settings.menuSettings = {zoom: "Hover"};
settings.MathEvents = {hover: 750};