diff options
author | Michael Pfister <pfista@gmail.com> | 2013-10-09 21:29:10 -0500 |
---|---|---|
committer | Michael Pfister <pfista@gmail.com> | 2013-10-09 21:29:10 -0500 |
commit | 556fa9fe4d85c8d1e3d9ee6891ebb7096d81fe78 (patch) | |
tree | 6ea69d3710b6b1a9742da57fd1dfc85262ab829a /.themes/classic/source | |
parent | ff71657c432e2beb2f540617e4cc264c42e22cee (diff) | |
download | my_new_personal_website-556fa9fe4d85c8d1e3d9ee6891ebb7096d81fe78.tar.xz my_new_personal_website-556fa9fe4d85c8d1e3d9ee6891ebb7096d81fe78.zip |
Use a protocol-relative url to load disqus over https or http
Diffstat (limited to '.themes/classic/source')
-rw-r--r-- | .themes/classic/source/_includes/disqus.html | 2 |
1 files changed, 1 insertions, 1 deletions
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); }()); </script> |