fix(share): pass download url properly to sharing plugin (facebook and twitter)

This commit is contained in:
Jason Dreyzehner 2016-11-16 13:56:46 -05:00
commit b88738a7dd

View file

@ -7,27 +7,27 @@ angular.module('copayApp.controllers').controller('completeController', function
var config = configService.getSync();
$scope.shareFacebook = function() {
window.plugins.socialsharing.shareVia($scope.shareFacebookVia, config.download.url, null, null, null, null, null);
window.plugins.socialsharing.shareVia($scope.shareFacebookVia, null, null, null, config.download.url);
};
$scope.shareTwitter = function() {
window.plugins.socialsharing.shareVia($scope.shareTwitterVia, config.download.url, null, null, null, null, null);
window.plugins.socialsharing.shareVia($scope.shareTwitterVia, null, null, null, config.download.url);
};
$scope.shareGooglePlus = function() {
window.plugins.socialsharing.shareVia($scope.shareGooglePlusVia, config.download.url, null, null, null);
window.plugins.socialsharing.shareVia($scope.shareGooglePlusVia, config.download.url);
};
$scope.shareEmail = function() {
window.plugins.socialsharing.shareViaEmail(config.download.url, null, null, null);
window.plugins.socialsharing.shareViaEmail(config.download.url);
};
$scope.shareWhatsapp = function() {
window.plugins.socialsharing.shareViaWhatsApp(config.download.url, null, null, null);
window.plugins.socialsharing.shareViaWhatsApp(config.download.url);
};
$scope.shareMessage = function() {
window.plugins.socialsharing.shareViaSMS(config.download.url, null, null, null);
window.plugins.socialsharing.shareViaSMS(config.download.url);
};
$scope.$on("$ionicView.beforeEnter", function(event, data) {