From 2de03825203f71d3ec4fedaaee7f4c4b950aa93d Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 26 Aug 2014 16:14:34 -0300 Subject: [PATCH] Check if browser support localStorage --- js/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/routes.js b/js/routes.js index 426862a4e..62b47ec37 100644 --- a/js/routes.js +++ b/js/routes.js @@ -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) {