diff options
author | Alexandre Perrin <alexandre.perrin@netoxygen.ch> | 2013-10-03 10:00:27 +0200 |
---|---|---|
committer | Alexandre Perrin <alexandre.perrin@netoxygen.ch> | 2013-10-03 10:00:27 +0200 |
commit | 0a1b94d222d899868e1c3a8d3518c434e909e2f1 (patch) | |
tree | 4378faa5f1186dbbac5439ca1abeb84678d0f9c6 | |
parent | 4cc76820331b2b327c03d27216e79bc55a58c505 (diff) | |
download | my_new_personal_website-0a1b94d222d899868e1c3a8d3518c434e909e2f1.tar.xz my_new_personal_website-0a1b94d222d899868e1c3a8d3518c434e909e2f1.zip |
Fix Disqus over https.
Forcing http:// as protocol will make Disqus fail when server over
https for security reasons.
Diffstat (limited to '')
-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> |