Make version check a little more robust.
This commit is contained in:
parent
4fd69bee0f
commit
8d30a0453d
|
@ -96,7 +96,7 @@
|
|||
var json = JSON.parse(request.responseText);
|
||||
if (json instanceof Array) json = json[0];
|
||||
var version = json[cdn.version];
|
||||
if (version.substr(0,1) === '2') {
|
||||
if (version.substr(0,2) === '2.') {
|
||||
setVersion(version);
|
||||
loadMathJax(cdn.mathjax + json[cdn.version] + unpacked + '/MathJax.js' + config);
|
||||
return;
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
var json = JSON.parse(request.responseText);
|
||||
if (json instanceof Array) json = json[0];
|
||||
var version = json[cdn.version];
|
||||
if (version.substr(0,1) === '2') {
|
||||
if (version.substr(0,2) === '2.') {
|
||||
setVersion(version);
|
||||
loadMathJax(cdn.mathjax + json[cdn.version] + unpacked + '/MathJax.js' + config);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user