Skip to content

Commit

Permalink
Don't munge hostnames like 2dwww.com into 2d.com.
Browse files Browse the repository at this point in the history
  • Loading branch information
johan committed Oct 7, 2012
1 parent 9095ee5 commit 10faf8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/dotjs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$.ajax({
url: 'http://localhost:3131/'+window.location.hostname.replace('www.','')+'.js',
url: 'http://localhost:3131/'+location.hostname.replace(/^www\./,'')+'.js',
dataType: 'text',
success: function(d){
$(function(){ eval(d) })
Expand Down

0 comments on commit 10faf8a

Please sign in to comment.