From 556fa9fe4d85c8d1e3d9ee6891ebb7096d81fe78 Mon Sep 17 00:00:00 2001 From: Michael Pfister Date: Wed, 9 Oct 2013 21:29:10 -0500 Subject: Use a protocol-relative url to load disqus over https or http --- .themes/classic/source/_includes/disqus.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.themes') diff --git a/.themes/classic/source/_includes/disqus.html b/.themes/classic/source/_includes/disqus.html index 549ba3d7..6cd3e62f 100644 --- a/.themes/classic/source/_includes/disqus.html +++ b/.themes/classic/source/_includes/disqus.html @@ -14,7 +14,7 @@ {% endif %} (function () { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + disqus_shortname + '.disqus.com/' + disqus_script; + dsq.src = ('//') + disqus_shortname + '.disqus.com/' + disqus_script; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); }()); -- cgit v1.2.1