From 6506d1a1afa9878e7cfad17bb1e781c2c4aae9b4 Mon Sep 17 00:00:00 2001 From: Joshua Wehner Date: Mon, 31 Oct 2011 16:07:26 -0300 Subject: [PATCH] So's one could use this with localhost location.host => 'localhost:3000' :( location.hostname => 'localhost' :) --- ext/dotjs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/dotjs.js b/ext/dotjs.js index 30ae171..86e213a 100644 --- a/ext/dotjs.js +++ b/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) })