Add roll-over from mathjax/latest to mathjax/x.y-latest for references to the CDN (to make sure that all files come from the same version). Resolves issue #1036.
This commit is contained in:
parent
4cce3df7b3
commit
521d4ee513
|
@ -3063,8 +3063,8 @@ MathJax.Hub.Startup = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'')
|
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'')
|
||||||
// convert rackspace to cdn.mathjax.org now that it supports https protocol
|
// convert mathjax/latest to mathjax/x.y-latest so that all files are the same version
|
||||||
.replace(/^(https?:)\/\/[0-9a-f]+(-[0-9a-f]+)?.ssl.cf1.rackcdn.com\//,"$1//cdn.mathjax.org/");
|
.replace(/^(https?:\/\/cdn.mathjax.org\/mathjax\/)(latest)/,"$1"+BASE.version.split(/\./).slice(0,2).join(".")+"-$2");
|
||||||
BASE.Ajax.config.root = CONFIG.root;
|
BASE.Ajax.config.root = CONFIG.root;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user