Show a warning if trying to open same wallet in same browser. Fix redirect to receive.
This commit is contained in:
parent
fe53f1b87c
commit
801e746d11
8 changed files with 93 additions and 6 deletions
|
|
@ -17,11 +17,14 @@ angular.module('copayApp.services')
|
|||
root.redirIfLogged = function() {
|
||||
var w = $rootScope.wallet;
|
||||
if (w) {
|
||||
$location.path('addresses');
|
||||
$location.path('receive');
|
||||
}
|
||||
};
|
||||
|
||||
root.logout = function() {
|
||||
if (!$rootScope.wallet.isLocked) {
|
||||
$rootScope.wallet.closeIfOpen();
|
||||
}
|
||||
Socket.removeAllListeners();
|
||||
|
||||
$rootScope.wallet = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue