add resync to refresh button

This commit is contained in:
Matias Alejo Garcia 2014-08-28 16:37:34 -03:00
commit ad4ebfdc3c
3 changed files with 6 additions and 17 deletions

View file

@ -345,13 +345,16 @@ Network.prototype.send = function(dest, payload, cb) {
dest = this.getCopayerIds();
payload.isBroadcast = 1;
}
console.log('SEND to: ' + to, payload);
if (typeof dest === 'string')
dest = [dest];
var l = dest.length;
var i = 0;
//console.log('sending ' + JSON.stringify(payload));
dest.forEach(function(to) {
//console.log('\t to ' + to);
var message = self.encode(to, payload);