Permalink
Browse files

use the location, not the document to get the url

  • Loading branch information...
1 parent fa4bc9c commit b0e694c378d30bd3850821fb5eaec40372272b65 @wbecker committed Feb 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 client/client.js
View
@@ -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) {

0 comments on commit b0e694c

Please sign in to comment.