Add latest param in case we need MathJax.js to know it has been called from lastest.js in the future.

This commit is contained in:
Davide P. Cervone 2017-04-15 09:43:01 -04:00
parent 8d30a0453d
commit 513954a6d5
2 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,7 @@
var cdn = getCDN(script);
if (cdn) {
var config = script.src.replace(/.*?(\?|$)/, "$1");
config += (config ? '&' : '?') + 'latest';
var unpacked = (script.src.match(/\/unpacked\/latest\.js/) ? "/unpacked" : "");
var version = getVersion();
if (version) {

View File

@ -119,6 +119,7 @@
var cdn = getCDN(script);
if (cdn) {
var config = script.src.replace(/.*?(\?|$)/, "$1");
config += (config ? '&' : '?') + 'latest';
var unpacked = (script.src.match(/\/unpacked\/latest\.js/) ? "/unpacked" : "");
var version = getVersion();
if (version) {