Merge pull request #1195 from cmgustavo/feature/remove-unsupported

Check if browser support localStorage
This commit is contained in:
Manuel Aráoz 2014-08-26 17:28:20 -03:00
commit 0a8fe334f8
2 changed files with 5 additions and 5 deletions

View file

@ -82,7 +82,7 @@ angular
.run(function($rootScope, $location, $idle) {
$idle.watch();
$rootScope.$on('$routeChangeStart', function(event, next, current) {
if (!util.supports.data) {
if (!localStorage || localStorage.length < 1) {
$location.path('unsupported');
} else {
if ((!$rootScope.wallet || !$rootScope.wallet.id) && next.validate) {