Don't load past version 2 (i.e., don't automatically load version 3).
This commit is contained in:
parent
f865b6a83a
commit
d49394aca1
|
@ -95,12 +95,16 @@
|
||||||
if (request.status === 200) {
|
if (request.status === 200) {
|
||||||
var json = JSON.parse(request.responseText);
|
var json = JSON.parse(request.responseText);
|
||||||
if (json instanceof Array) json = json[0];
|
if (json instanceof Array) json = json[0];
|
||||||
setVersion(json[cdn.version]);
|
var version = json[cdn.version];
|
||||||
loadMathJax(cdn.mathjax + json[cdn.version] + unpacked + '/MathJax.js' + config);
|
if (version.substr(0,1) === '2') {
|
||||||
|
setVersion(version);
|
||||||
|
loadMathJax(cdn.mathjax + json[cdn.version] + unpacked + '/MathJax.js' + config);
|
||||||
|
return;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Error("Problem aquiring MathJax version: status = " + request.status);
|
Error("Problem aquiring MathJax version: status = " + request.status);
|
||||||
laodDefaultMathJax();
|
|
||||||
}
|
}
|
||||||
|
laodDefaultMathJax();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
request.open('GET', cdn.api, true);
|
request.open('GET', cdn.api, true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user