Skip to content

Commit

Permalink
use the location, not the document to get the url
Browse files Browse the repository at this point in the history
  • Loading branch information
wbecker committed Feb 23, 2011
1 parent fa4bc9c commit b0e694c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
clearInterval(retryTimeout);
}
var connectMessage = {};
connectMessage.url = document.host + document.pathname;
connectMessage.url = document.location.host + document.location.pathname;
connectMessage.userToken = userToken;
socket.send(JSON.stringify(connectMessage));
_(lostMessages).keys().sort().forEach(function (key) {
Expand Down

0 comments on commit b0e694c

Please sign in to comment.