mirror of https://github.com/BTCPrivate/copay.git
fix signin
This commit is contained in:
parent
398daf3f05
commit
6fea0a4f6a
|
@ -18,8 +18,6 @@ angular.module('copay.footer').controller('FooterController', function($rootScop
|
||||||
|
|
||||||
$scope.getVideoURL = function(copayer) {
|
$scope.getVideoURL = function(copayer) {
|
||||||
var vi = $rootScope.videoInfo[copayer]
|
var vi = $rootScope.videoInfo[copayer]
|
||||||
|
|
||||||
console.log('[footer.js.21]', vi); //TODO
|
|
||||||
if (!vi) return;
|
if (!vi) return;
|
||||||
|
|
||||||
if ($rootScope.wallet.getOnlinePeerIDs().indexOf(copayer) === -1) {
|
if ($rootScope.wallet.getOnlinePeerIDs().indexOf(copayer) === -1) {
|
||||||
|
@ -31,7 +29,6 @@ console.log('[footer.js.21]', vi); //TODO
|
||||||
var encoded = vi.url;
|
var encoded = vi.url;
|
||||||
var url = decodeURI(encoded);
|
var url = decodeURI(encoded);
|
||||||
var trusted = $sce.trustAsResourceUrl(url);
|
var trusted = $sce.trustAsResourceUrl(url);
|
||||||
console.log('[footer.js.31:trusted:]',trusted); //TODO
|
|
||||||
return trusted;
|
return trusted;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -85,7 +85,6 @@ angular.module('copay.signin').controller('SigninController',
|
||||||
$scope.failure = true;
|
$scope.failure = true;
|
||||||
});
|
});
|
||||||
wallet.on('ready', function() {
|
wallet.on('ready', function() {
|
||||||
console.log('## RECEIVED READY2');
|
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -225,7 +225,9 @@ Wallet.prototype.netStart = function() {
|
||||||
net.start(startOpts, function() {
|
net.start(startOpts, function() {
|
||||||
self.emit('ready', net.getPeer());
|
self.emit('ready', net.getPeer());
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
|
console.log('[EMIT publicKeyRingUpdated:]'); //TODO
|
||||||
self.emit('publicKeyRingUpdated');
|
self.emit('publicKeyRingUpdated');
|
||||||
|
console.log('[CONNECT:]'); //TODO
|
||||||
self.connectToAll();
|
self.connectToAll();
|
||||||
self.emit('txProposalsUpdated');
|
self.emit('txProposalsUpdated');
|
||||||
},10);
|
},10);
|
||||||
|
|
|
@ -55,12 +55,11 @@ angular.module('copay.controllerUtils')
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
w.on('ready', function(myPeerID) {
|
w.on('ready', function(myPeerID) {
|
||||||
console.log('## RECEIVED READY.');
|
|
||||||
video.setOwnPeer(myPeerID, w, handlePeerVideo);
|
|
||||||
$rootScope.wallet = w;
|
$rootScope.wallet = w;
|
||||||
$location.path('addresses');
|
$location.path('addresses');
|
||||||
$rootScope.$digest();
|
video.setOwnPeer(myPeerID, w, handlePeerVideo);
|
||||||
});
|
});
|
||||||
|
|
||||||
w.on('publicKeyRingUpdated', function() {
|
w.on('publicKeyRingUpdated', function() {
|
||||||
root.setSocketHandlers();
|
root.setSocketHandlers();
|
||||||
root.updateAddressList();
|
root.updateAddressList();
|
||||||
|
|
Loading…
Reference in New Issue