Don't translate cdn.mathjax.org addresses any more.

This commit is contained in:
Davide P. Cervone 2017-04-13 12:20:59 -04:00
parent 6273842a97
commit 4d0f54d4ed

View File

@ -3130,9 +3130,7 @@ MathJax.Hub.Startup = {
else {STARTUP.params[params[j]] = true}
}
}
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'')
// convert mathjax/latest to mathjax/x.y-latest so that all files are the same version
.replace(/^(https?:\/\/cdn.mathjax.org\/mathjax\/)(latest)/,"$1"+BASE.version.split(/\./).slice(0,2).join(".")+"-$2");
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'');
BASE.Ajax.config.root = CONFIG.root;
BASE.Ajax.params = STARTUP.params;
break;