fix auto-focus and isMobile variable

This commit is contained in:
Gustavo Maximiliano Cortez 2014-12-04 20:42:08 -03:00
commit ec99639323
4 changed files with 9 additions and 5 deletions

View file

@ -6,6 +6,8 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
var _credentials, _firstpin;
$scope.init = function() {
$scope.isMobile = isMobile.any();
// This is only for backwards compat, insight api should link to #!/confirmed directly
if (getParam('confirmed')) {
var hashIndex = window.location.href.indexOf('/?');
@ -158,7 +160,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
$scope.confirmedEmail = false;
// mobile
if (isMobile.any() && !$rootScope.hasPin) {
if ($scope.isMobile && !$rootScope.hasPin) {
$scope.done();
_credentials = {
email: email,