Merge pull request #670 from dpvc/cdn-version-append

CDN version append
This commit is contained in:
Davide P. Cervone 2013-11-17 04:58:21 -08:00
commit 62a267ed8c
2 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -2943,7 +2943,9 @@ MathJax.Hub.Startup = {
if (KV) {STARTUP.params[unescape(KV[1])] = unescape(KV[2])}
}
}
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'');
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'')
.replace(/^(https?:\/\/(cdn.mathjax.org|c328740.ssl.cf1.rackcdn.com)\/mathjax\/)(latest)/,
"$1"+BASE.version+"-$3");
break;
}
}