Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

So's one could use this with localhost

location.host => 'localhost:3000' :(
location.hostname => 'localhost'  :)
  • Loading branch information...
commit 6506d1a1afa9878e7cfad17bb1e781c2c4aae9b4 1 parent 92b55ff
@jaw6 jaw6 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ext/dotjs.js
View
2  ext/dotjs.js
@@ -1,5 +1,5 @@
$.ajax({
- url: 'http://localhost:3131/'+window.location.host.replace('www.','')+'.js',
+ url: 'http://localhost:3131/'+window.location.hostname.replace('www.','')+'.js',
dataType: 'text',
success: function(d){
$(function(){ eval(d) })
Please sign in to comment.
Something went wrong with that request. Please try again.