From 4d0f54d4eddfa63ca9a2e07d27cfafc6d40a1127 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 13 Apr 2017 12:20:59 -0400 Subject: [PATCH] Don't translate cdn.mathjax.org addresses any more. --- unpacked/MathJax.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 8e905241f..be2517741 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -3130,9 +3130,7 @@ MathJax.Hub.Startup = { else {STARTUP.params[params[j]] = true} } } - CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'') - // convert mathjax/latest to mathjax/x.y-latest so that all files are the same version - .replace(/^(https?:\/\/cdn.mathjax.org\/mathjax\/)(latest)/,"$1"+BASE.version.split(/\./).slice(0,2).join(".")+"-$2"); + CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,''); BASE.Ajax.config.root = CONFIG.root; BASE.Ajax.params = STARTUP.params; break;