share wallet

This commit is contained in:
Javier 2016-11-01 15:35:52 -03:00 committed by Gabriel Bazán
commit a2e20ee75d

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);
}
});
});