Skip to content

Commit

Permalink
Make Disqus embed.js URL protocol relative
Browse files Browse the repository at this point in the history
Allow embed.js to be loaded on http or https sites
  • Loading branch information
swalkinshaw committed Oct 18, 2012
1 parent ac10c37 commit 7f8aa59
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -11,7 +11,7 @@
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>

0 comments on commit 7f8aa59

Please sign in to comment.