Delete wallet function as service

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-21 14:26:58 -03:00 committed by Matias Alejo Garcia
commit c01cdb8b25
5 changed files with 29 additions and 19 deletions

View file

@ -75,7 +75,9 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
notification.warning('Session closed', 'Session closed because a long time of inactivity');
});
$scope.$on('$keepalive', function() {
$rootScope.wallet.keepAlive();
if ($rootScope.wallet) {
$rootScope.wallet.keepAlive();
}
});
}