fix(share): pass download url properly to sharing plugin (facebook and twitter)
This commit is contained in:
parent
2a30ab0fee
commit
b88738a7dd
1 changed files with 6 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue