Check if browser support localStorage

This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-26 16:14:34 -03:00
parent f63e17eaf3
commit 2de0382520
1 changed files with 1 additions and 1 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) {