Skip to content

Commit

Permalink
Merge pull request disqus#61 from disqus/update-count
Browse files Browse the repository at this point in the history
Load count.js from shortname.disqus.com
  • Loading branch information
mattrobenolt committed Dec 18, 2013
2 parents 27c0a5c + 5f0b45d commit cf20c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disqus/disqus.php
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ function dsq_output_loop_comment_js($post_ids = null) {
}
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + '<?php echo DISQUS_DOMAIN; ?>/forums/' + disqus_shortname + '/count.js';
s.src = '//' + disqus_shortname + '.<?php echo DISQUS_DOMAIN; ?>/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
//]]>
Expand Down Expand Up @@ -1222,7 +1222,7 @@ function dsq_output_footer_comment_js() {
}
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + '<?php echo DISQUS_DOMAIN; ?>/forums/' + disqus_shortname + '/count.js';
s.src = '//' + disqus_shortname + '.<?php echo DISQUS_DOMAIN; ?>/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
//]]>
Expand Down

0 comments on commit cf20c50

Please sign in to comment.