Fix disqus.js

This commit is contained in:
Roman Mogylatov 2020-06-16 21:38:54 -04:00
parent efd6e3e7e5
commit cc1043eb82
1 changed files with 4 additions and 6 deletions

View File

@ -1,10 +1,8 @@
var disqus_shortname;
var disqus_identifier;
(function() {{
$(function() {
var disqus_thread = $("#disqus_thread");
disqus_shortname = disqus_thread.data('disqus-shortname');
disqus_identifier = disqus_thread.data('disqus-identifier');
var disqus_shortname = disqus_thread.data('disqus-shortname');
var disqus_identifier = disqus_thread.data('disqus-identifier');
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}})();
});