mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
Fix bug. Phone to Chrome working again.
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user