commit 8700fdf0986d02932a8f3cf246bd7548e378b0f7 parent 705548fc371edc70e668833e68858bf3b40229d9 Author: Davide P. Cervone <dpvc@union.edu> Date: Sat, 16 Nov 2013 20:22:19 -0500 If coming from the CDN's mathjax/latest address, move to the explicit version (avoids CDN propagation issues when a new version is released). Diffstat:
| M | unpacked/MathJax.js | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js @@ -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; } }