fix reconnect to insight
This commit is contained in:
parent
dd8fcaa1b1
commit
45fd46e3bc
5 changed files with 77 additions and 53 deletions
|
|
@ -83,14 +83,15 @@ angular.module('copayApp.services')
|
|||
});
|
||||
});
|
||||
|
||||
w.on('networkReconnected', function() {
|
||||
w.on('insightReconnected', function() {
|
||||
$rootScope.reconnecting = false;
|
||||
root.updateAddressList();
|
||||
root.updateBalance(function() {
|
||||
$rootScope.$digest();
|
||||
});
|
||||
});
|
||||
|
||||
w.on('networkError', function() {
|
||||
w.on('insightError', function() {
|
||||
$rootScope.reconnecting = true;
|
||||
$rootScope.$digest();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue