Make this rev=2.4-beta-2, and turn rackspace https into beta.mathjax.org (this will need to be changed to cdn.mathjax.org for the final release).

This commit is contained in:
Davide P. Cervone 2014-06-01 10:41:27 -04:00
parent 7c47e03240
commit 2e9b3c7c60

View File

@ -47,7 +47,7 @@ if (window.MathJax) {window.MathJax = {AuthorConfig: window.MathJax}}
MathJax.version = "2.4-beta"; MathJax.version = "2.4-beta";
MathJax.fileversion = "2.4-beta"; MathJax.fileversion = "2.4-beta";
MathJax.cdnVersion = "2.4-beta"; // specifies a revision to break caching MathJax.cdnVersion = "2.4-beta-2"; // specifies a revision to break caching
MathJax.cdnFileVersions = {}; // can be used to specify revisions for individual files MathJax.cdnFileVersions = {}; // can be used to specify revisions for individual files
/**********************************************************/ /**********************************************************/
@ -2973,8 +2973,8 @@ MathJax.Hub.Startup = {
} }
} }
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'') CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'')
.replace(/^(https?:\/\/(cdn.mathjax.org|[0-9a-f]+(-[0-9a-f]+)?.ssl.cf1.rackcdn.com)\/mathjax\/)(latest)/, // convert rackspace to cdn.mathjax.org now that it supports https protocol
"$1"+BASE.version+"-$4"); .replace(/^(https?:)\/\/[0-9a-f]+(-[0-9a-f]+)?.ssl.cf1.rackcdn.com\//,"$1//beta.mathjax.org/");
BASE.Ajax.config.root = CONFIG.root; BASE.Ajax.config.root = CONFIG.root;
break; break;
} }