Skip to content

Commit 4d0f54d

Browse files
committed
Don't translate cdn.mathjax.org addresses any more.
1 parent 6273842 commit 4d0f54d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

unpacked/MathJax.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3130,9 +3130,7 @@ MathJax.Hub.Startup = {
31303130
else {STARTUP.params[params[j]] = true}
31313131
}
31323132
}
3133-
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'')
3134-
// convert mathjax/latest to mathjax/x.y-latest so that all files are the same version
3135-
.replace(/^(https?:\/\/cdn.mathjax.org\/mathjax\/)(latest)/,"$1"+BASE.version.split(/\./).slice(0,2).join(".")+"-$2");
3133+
CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'');
31363134
BASE.Ajax.config.root = CONFIG.root;
31373135
BASE.Ajax.params = STARTUP.params;
31383136
break;

0 commit comments

Comments
 (0)