Browse files

Don't hard-code the hostname

  • Loading branch information...
1 parent 63670d2 commit 562520a7ad5e4194412a55938ae2224ffabf6ea1 @creationix committed Aug 1, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 public/app.js
View
3 public/app.js
@@ -8,6 +8,7 @@ var X = 0,
current = 0;
onhashchange = loadMap;
+
@@ -68,7 +69,7 @@ window.onload = function () {
mainDiv.addEventListener('click', onClick);
mainDiv.addEventListener('keypress', onKeypress);
- socket = new io.Socket('localhost');
+ socket = new io.Socket(null));
socket.connect();
socket.on('message', onMessage);
socket.on('connect', loadMap);

0 comments on commit 562520a

Please sign in to comment.