From 2e9b3c7c603c7fe37343add039ce6f9aa24694d2 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 1 Jun 2014 10:41:27 -0400 Subject: [PATCH] Make this rev=2.4-beta-2, and turn rackspace https into beta.mathjax.org (this will need to be changed to cdn.mathjax.org for the final release). --- unpacked/MathJax.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 75a6ad88f..25f50d7e0 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -47,8 +47,8 @@ if (window.MathJax) {window.MathJax = {AuthorConfig: window.MathJax}} MathJax.version = "2.4-beta"; MathJax.fileversion = "2.4-beta"; -MathJax.cdnVersion = "2.4-beta"; // specifies a revision to break caching -MathJax.cdnFileVersions = {}; // can be used to specify revisions for individual files +MathJax.cdnVersion = "2.4-beta-2"; // specifies a revision to break caching +MathJax.cdnFileVersions = {}; // can be used to specify revisions for individual files /**********************************************************/ @@ -2973,8 +2973,8 @@ MathJax.Hub.Startup = { } } CONFIG.root = scripts[i].src.replace(/(^|\/)[^\/]*(\?.*)?$/,'') - .replace(/^(https?:\/\/(cdn.mathjax.org|[0-9a-f]+(-[0-9a-f]+)?.ssl.cf1.rackcdn.com)\/mathjax\/)(latest)/, - "$1"+BASE.version+"-$4"); + // convert rackspace to cdn.mathjax.org now that it supports https protocol + .replace(/^(https?:)\/\/[0-9a-f]+(-[0-9a-f]+)?.ssl.cf1.rackcdn.com\//,"$1//beta.mathjax.org/"); BASE.Ajax.config.root = CONFIG.root; break; }