Merge pull request #1390 from pfista/master
Use a protocol-relative url to load disqus over https or http
This commit is contained in:
commit
c5141ef70d
@ -14,7 +14,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
(function () {
|
(function () {
|
||||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
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);
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
}());
|
}());
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user