Permalink
Browse files

refactor: .hostname is equivalent to stripping port off .host

  • Loading branch information...
1 parent 3bf6031 commit acd1972aa28014058266a75e94e0bec3036f9662 @crccheck crccheck committed Nov 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 abstract_templates/templates/layouts/components/debug_mode_head.html
@@ -3,6 +3,6 @@
{% endcomment %}
<script>
if (location.port) {
- document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')
+ document.write('<script src="http://' + (location.hostname || 'localhost') + ':35729/livereload.js?snipver=1"></' + 'script>')
}
</script>

0 comments on commit acd1972

Please sign in to comment.