Change share from device to only go to Chrome (simpler mental model for now).

More robustness to browser channel.
Temporary logging.
This commit is contained in:
burke.davey
2011-05-11 20:34:49 +00:00
parent cdcab027dc
commit 768ea20aa1
3 changed files with 8 additions and 3 deletions

View File

@@ -150,6 +150,10 @@ function initializeBrowserChannel() {
} else if (req.responseText.indexOf('NOT_ENABLED') == 0) {
console.log('Not initializing browser channel because feature not enabled for user');
}
} else { // server not happy, random backoff
var delay = Math.random() * 20000;
console.log('Failed to register browser channel (' + req.status + '), retrying in ' + delay + 'ms');
setTimeout('initializeBrowserChannel()', delay);
}
}, {
'method': 'POST',