diff options
author | Parker Moore <parkrmoore@gmail.com> | 2013-10-03 10:25:08 -0700 |
---|---|---|
committer | Parker Moore <parkrmoore@gmail.com> | 2013-10-03 10:25:08 -0700 |
commit | 8aa851e9e342fac787215988ede20dcb0b046a22 (patch) | |
tree | 4378faa5f1186dbbac5439ca1abeb84678d0f9c6 /.themes/classic | |
parent | 4cc76820331b2b327c03d27216e79bc55a58c505 (diff) | |
parent | 0a1b94d222d899868e1c3a8d3518c434e909e2f1 (diff) | |
download | my_new_personal_website-8aa851e9e342fac787215988ede20dcb0b046a22.tar.xz my_new_personal_website-8aa851e9e342fac787215988ede20dcb0b046a22.zip |
Merge pull request #1384 from kAworu/fix-disqus-over-https
Fix Disqus over https.
Diffstat (limited to '.themes/classic')
-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 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); }()); </script> |