Skip to content

Commit d49394a

Browse files
committed
Don't load past version 2 (i.e., don't automatically load version 3).
1 parent f865b6a commit d49394a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

unpacked/CDN-latest.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,16 @@
9595
if (request.status === 200) {
9696
var json = JSON.parse(request.responseText);
9797
if (json instanceof Array) json = json[0];
98-
setVersion(json[cdn.version]);
99-
loadMathJax(cdn.mathjax + json[cdn.version] + unpacked + '/MathJax.js' + config);
98+
var version = json[cdn.version];
99+
if (version.substr(0,1) === '2') {
100+
setVersion(version);
101+
loadMathJax(cdn.mathjax + json[cdn.version] + unpacked + '/MathJax.js' + config);
102+
return;
103+
}
100104
} else {
101105
Error("Problem aquiring MathJax version: status = " + request.status);
102-
laodDefaultMathJax();
103106
}
107+
laodDefaultMathJax();
104108
}
105109
}
106110
request.open('GET', cdn.api, true);

0 commit comments

Comments
 (0)