commit
a5262ef68a
2 changed files with 3 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ angular.module('copay.signin').controller('SigninController',
|
||||||
};
|
};
|
||||||
|
|
||||||
var _setupUxHandlers = function(w) {
|
var _setupUxHandlers = function(w) {
|
||||||
w.on('open', function(){
|
w.on('created', function(){
|
||||||
$location.path('peer');
|
$location.path('peer');
|
||||||
$rootScope.wallet = w;
|
$rootScope.wallet = w;
|
||||||
$rootScope.$digest();
|
$rootScope.$digest();
|
||||||
|
|
|
||||||
|
|
@ -115,16 +115,15 @@ Wallet.prototype._handleNetworkChange = function(newPeer) {
|
||||||
this.sendTxProposals(newPeer);
|
this.sendTxProposals(newPeer);
|
||||||
};
|
};
|
||||||
|
|
||||||
Wallet.prototype.netStart = function(cb) {
|
Wallet.prototype.netStart = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
var net = this.network;
|
var net = this.network;
|
||||||
net.on('networkChange', function() { self._handleNetworkChange() } );
|
net.on('networkChange', function() { self._handleNetworkChange(); } );
|
||||||
net.on('data', function() { self._handleData();});
|
net.on('data', function() { self._handleData();});
|
||||||
net.on('open', function() {}); // TODO
|
net.on('open', function() {}); // TODO
|
||||||
net.on('close', function() {}); // TODO
|
net.on('close', function() {}); // TODO
|
||||||
net.start(function(peerId) {
|
net.start(function(peerId) {
|
||||||
self.emit('created');
|
self.emit('created');
|
||||||
return cb();
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue