diff --git a/extensions/accessibility-menu.js b/extensions/accessibility-menu.js index 745bd1f38..1ff34d48d 100644 --- a/extensions/accessibility-menu.js +++ b/extensions/accessibility-menu.js @@ -40,7 +40,7 @@ var PATH = MathJax.Ajax.config.path; if (!PATH.a11y) PATH.a11y = (PATH.Contrib ? PATH.Contrib + "/a11y" : - (String(location.protocal).match(/^https?:/) ? "" : "http:") + + (String(location.protocol).match(/^https?:/) ? "" : "http:") + "//cdn.mathjax.org/mathjax/contrib/a11y"); var Accessibility = EXTENSIONS["accessibility-menu"] = { diff --git a/extensions/auto-collapse.js b/extensions/auto-collapse.js index 3c3b9f415..63c5d7f07 100644 --- a/extensions/auto-collapse.js +++ b/extensions/auto-collapse.js @@ -32,7 +32,7 @@ var PATH = MathJax.Ajax.config.path; if (!PATH.a11y) PATH.a11y = (PATH.Contrib ? PATH.Contrib + "/a11y" : - (String(location.protocal).match(/^https?:/) ? "" : "http:") + + (String(location.protocol).match(/^https?:/) ? "" : "http:") + "//cdn.mathjax.org/mathjax/contrib/a11y"); var Collapse = MathJax.Extension["auto-collapse"] = { diff --git a/extensions/collapsible.js b/extensions/collapsible.js index f7de448db..ce5ba10ec 100644 --- a/extensions/collapsible.js +++ b/extensions/collapsible.js @@ -40,7 +40,7 @@ var PATH = MathJax.Ajax.config.path; if (!PATH.a11y) PATH.a11y = (PATH.Contrib ? PATH.Contrib + "/a11y" : - (String(location.protocal).match(/^https?:/) ? "" : "http:") + + (String(location.protocol).match(/^https?:/) ? "" : "http:") + "//cdn.mathjax.org/mathjax/contrib/a11y"); var Collapsible = MathJax.Extension.collapsible = { diff --git a/extensions/explorer.js b/extensions/explorer.js index 3b14cd3e5..c3c0e3ed7 100644 --- a/extensions/explorer.js +++ b/extensions/explorer.js @@ -787,7 +787,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () { // if (!MathJax.Ajax.config.path.a11y) { MathJax.Ajax.config.path.a11y = - (String(location.protocal).match(/^https?:/) ? '' : 'http:') + + (String(location.protocol).match(/^https?:/) ? '' : 'http:') + '//cdn.mathjax.org/mathjax/contrib/a11y'; } diff --git a/extensions/semantic-enrich.js b/extensions/semantic-enrich.js index defcfec70..e078a1264 100644 --- a/extensions/semantic-enrich.js +++ b/extensions/semantic-enrich.js @@ -95,7 +95,7 @@ MathJax.Extension["semantic-enrich"] = { var PATH = MathJax.Ajax.config.path; if (!PATH.a11y) PATH.a11y = (PATH.Contrib ? PATH.Contrib + "/a11y" : - (String(location.protocal).match(/^https?:/) ? "" : "http:") + + (String(location.protocol).match(/^https?:/) ? "" : "http:") + "//cdn.mathjax.org/mathjax/contrib/a11y"); //