Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make Disqus embed.js URL protocol relative #111

Merged
merged 1 commit into from

2 participants

@swalkinshaw

Allow embed.js to be loaded on http or https sites

@swalkinshaw swalkinshaw Make Disqus embed.js URL protocol relative
Allow embed.js to be loaded on http or https sites
7f8aa59
@jipiboily jipiboily merged commit 012c967 into from
@jipiboily
Owner

Thanks! Make sense.

@jipiboily
Owner

There were more to fix in the end, here it is: d8d3f63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 18, 2012
  1. @swalkinshaw

    Make Disqus embed.js URL protocol relative

    swalkinshaw authored
    Allow embed.js to be loaded on http or https sites
This page is out of date. Refresh to see the latest.
View
2  app/views/layouts/monologue/application/_disqus_embed.html.erb
@@ -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>
Something went wrong with that request. Please try again.