Skip to content
This repository
Browse code

Don't munge hostnames like 2dwww.com into 2d.com.

  • Loading branch information...
commit 10faf8a6b358949fdcfb2a4849fc5b3ab541e73d 1 parent 9095ee5
Johan Sundström authored October 07, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  ext/dotjs.js
2  ext/dotjs.js
... ...
@@ -1,5 +1,5 @@
1 1
 $.ajax({
2  
-  url: 'http://localhost:3131/'+window.location.hostname.replace('www.','')+'.js',
  2
+  url: 'http://localhost:3131/'+location.hostname.replace(/^www\./,'')+'.js',
3 3
   dataType: 'text',
4 4
   success: function(d){
5 5
     $(function(){ eval(d) })

0 notes on commit 10faf8a

Please sign in to comment.
Something went wrong with that request. Please try again.