share wallet

This commit is contained in:
Javier 2016-11-01 15:35:52 -03:00 committed by Gabriel Bazán
parent b64e80478e
commit a2e20ee75d
1 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,12 @@
'use strict';
angular.module('copayApp.controllers').controller('thanksController', function($scope, $state, $stateParams) {
angular.module('copayApp.controllers').controller('thanksController', function($scope, $state, $stateParams, platformInfo) {
$scope.score = parseInt($stateParams.score);
$scope.skip = $stateParams.skip && $scope.score == 5;
$scope.$on("$ionicView.beforeEnter", function(event, data) {
if (platformInfo.isCordova) {
window.plugins.socialsharing.share('https://bitpay.com/wallet', null, null, null);
}
});
});