Skip to content
Permalink
Browse files

offer MathJax via https using new cdn

The web dev world now recommends just using https instead of
protocol-relative links — and MathJax now has a sane domain name for
their https CDN.

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 23, 2015
1 parent dda6595 commit 4e983b8d29b9be48a0a6cd3a2a2fbb70b3b4855a
Showing with 1 addition and 6 deletions.
  1. +1 −6 nikola/data/themes/base/assets/js/mathjax.js
@@ -5,12 +5,7 @@
window.onload = function () {
setTimeout(function () {
var script = document.createElement("script");
if (location.protocol == 'https:') {
scriptbase = "https://c328740.ssl.cf1.rackcdn.com/";
} else {
scriptbase = "http://cdn.mathjax.org/";
}
script.src = scriptbase + "mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
script.src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
document.getElementsByTagName("body")[0].appendChild(script);
},1)
}

0 comments on commit 4e983b8

Please sign in to comment.