diff --git a/js/controllers/unsupported.js b/js/controllers/unsupported.js new file mode 100644 index 000000000..2617a81df --- /dev/null +++ b/js/controllers/unsupported.js @@ -0,0 +1,9 @@ +'use strict'; + +angular.module('copayApp.controllers').controller('UnsupportedController', + function($scope, $location) { + if (localStorage && localStorage.length > 0) { + $location.path('/'); + } + } +); diff --git a/views/unsupported.html b/views/unsupported.html index 8fe81cfd7..d92e41a68 100644 --- a/views/unsupported.html +++ b/views/unsupported.html @@ -1,4 +1,4 @@ -