Merge pull request #1659 from matiu/bug/logout3

reload on logout
This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-31 17:54:45 -03:00
commit 923cd8d65b

View file

@ -38,15 +38,9 @@ angular.module('copayApp.services')
delete $rootScope['wallet']; delete $rootScope['wallet'];
delete $rootScope['iden']; delete $rootScope['iden'];
// Clear rootScope // Go home reloading the application
for (var i in $rootScope) { var hashIndex = window.location.href.indexOf('#!/');
if (i.charAt(0) != '$') { window.location = window.location.href.substr(0, hashIndex);
delete $rootScope[i];
}
}
$location.path('/');
}); });
} }
}; };