Fix bug. Phone to Chrome working again.

This commit is contained in:
burke.davey
2011-02-27 20:30:41 +00:00
parent 23f3d684a7
commit 122d7f2e47

View File

@@ -76,7 +76,7 @@ function initializeBrowserChannel() {
req.onreadystatechange = function() { req.onreadystatechange = function() {
if (this.readyState == 4) { if (this.readyState == 4) {
if (req.status == 200) { if (req.status == 200) {
var channelId = req.responseText.substring(3); // expect 'OK <id>'; var channelId = req.responseText.substring(3).trim(); // expect 'OK <id>';
channel = new goog.appengine.Channel(channelId); channel = new goog.appengine.Channel(channelId);
socket = channel.open(); socket = channel.open();
socket.onopen = function() { socket.onopen = function() {