From 0a1b94d222d899868e1c3a8d3518c434e909e2f1 Mon Sep 17 00:00:00 2001 From: Alexandre Perrin Date: Thu, 3 Oct 2013 10:00:27 +0200 Subject: Fix Disqus over https. Forcing http:// as protocol will make Disqus fail when server over https for security reasons. --- .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 eb308779..549ba3d7 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 = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script; + dsq.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + disqus_shortname + '.disqus.com/' + disqus_script; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); }()); -- cgit v1.2.1