mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user