improve url checker

This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-06 18:41:37 -03:00
commit 53bc610bbc
7 changed files with 16 additions and 19 deletions

View file

@ -14,6 +14,13 @@ angular.module('copayApp.services')
return vi.muted;
};
root.redirIfLogged = function() {
var w = $rootScope.wallet;
if (w) {
$location.path('addresses');
}
};
root.logout = function() {
Socket.removeAllListeners();