Skip to content

Commit

Permalink
Merge pull request #285 from chrise86/master
Browse files Browse the repository at this point in the history
Don't specify protocol in Disqus script tag src
  • Loading branch information
iNecas committed Sep 8, 2014
2 parents 253d51b + 2394de4 commit c6d82c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/apipie/apipies/_disqus.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var disqus_shortname = "<%= Apipie.configuration.disqus_shortname %>";
(function() {
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>
Expand Down

0 comments on commit c6d82c8

Please sign in to comment.