Merge pull request #670 from dpvc/cdn-version-append
CDN version append
This commit is contained in:
commit
62a267ed8c
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user