Fix splash on wp8

This commit is contained in:
Gustavo Maximiliano Cortez 2015-09-16 13:52:28 -03:00
commit 7f2f85b971
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 50 additions and 43 deletions

View file

@ -1,15 +1,8 @@
'use strict';
angular.module('copayApp.controllers').controller('splashController',
function($scope, $timeout, $log, profileService, storageService, go, bwcService) {
storageService.getCopayDisclaimerFlag(function(err, val) {
if (!val) go.path('disclaimer');
if (profileService.profile) {
go.walletHome();
}
});
function($scope, $timeout, $log, profileService, storageService, go) {
$scope.create = function(noWallet) {
$scope.creatingProfile = true;
@ -29,4 +22,14 @@ angular.module('copayApp.controllers').controller('splashController',
});
}, 100);
};
$scope.init = function() {
storageService.getCopayDisclaimerFlag(function(err, val) {
if (!val) go.path('disclaimer');
if (profileService.profile) {
go.walletHome();
}
});
};
});