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(-) 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 From f11df1b6acd447893650e42e017b9261d1531a25 Mon Sep 17 00:00:00 2001 From: Michael Pfister Date: Wed, 9 Oct 2013 22:37:16 -0500 Subject: removed superfluous parentheses --- .themes/classic/source/_includes/disqus.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.themes/classic/source/_includes/disqus.html b/.themes/classic/source/_includes/disqus.html index 6cd3e62f..49c6a29c 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 = ('//') + 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