2016-11-01 14:21:35 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
2016-11-02 10:18:10 -03:00
|
|
|
angular.module('copayApp.controllers').controller('thanksController', function($scope, $state, $stateParams, platformInfo, configService) {
|
2016-11-01 14:21:35 -03:00
|
|
|
$scope.score = parseInt($stateParams.score);
|
|
|
|
|
$scope.skip = $stateParams.skip && $scope.score == 5;
|
2016-11-01 15:35:52 -03:00
|
|
|
|
|
|
|
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
|
|
|
|
if (platformInfo.isCordova) {
|
2016-11-02 10:18:10 -03:00
|
|
|
var config = configService.getSync();
|
|
|
|
|
window.plugins.socialsharing.share(config.download.url, null, null, null);
|
2016-11-01 15:35:52 -03:00
|
|
|
}
|
|
|
|
|
});
|
2016-11-01 14:21:35 -03:00
|
|
|
});
|