commit
5ff06d743c
2 changed files with 9 additions and 8 deletions
|
|
@ -7,7 +7,8 @@ angular.module('copayApp.controllers').controller('completeController', function
|
||||||
});
|
});
|
||||||
|
|
||||||
var defaults = configService.getDefaults();
|
var defaults = configService.getDefaults();
|
||||||
var downloadUrl = appConfigService.name == 'copay' ? defaults.download.copay.url : defaults.download.bitpay.url;
|
var content = appConfigService.name == 'copay' ? defaults.download.copay.url : defaults.download.bitpay.url;
|
||||||
|
content = 'I love the Bitcoin.com Wallet App! Get yours today! ' + content;
|
||||||
|
|
||||||
function quickFeedback(cb) {
|
function quickFeedback(cb) {
|
||||||
window.plugins.spinnerDialog.show();
|
window.plugins.spinnerDialog.show();
|
||||||
|
|
@ -17,37 +18,37 @@ angular.module('copayApp.controllers').controller('completeController', function
|
||||||
|
|
||||||
$scope.shareFacebook = function() {
|
$scope.shareFacebook = function() {
|
||||||
quickFeedback(function() {
|
quickFeedback(function() {
|
||||||
window.plugins.socialsharing.shareVia($scope.shareFacebookVia, null, null, null, downloadUrl);
|
window.plugins.socialsharing.shareVia($scope.shareFacebookVia, null, null, null, content);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.shareTwitter = function() {
|
$scope.shareTwitter = function() {
|
||||||
quickFeedback(function() {
|
quickFeedback(function() {
|
||||||
window.plugins.socialsharing.shareVia($scope.shareTwitterVia, null, null, null, downloadUrl);
|
window.plugins.socialsharing.shareVia($scope.shareTwitterVia, null, null, null, content);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.shareGooglePlus = function() {
|
$scope.shareGooglePlus = function() {
|
||||||
quickFeedback(function() {
|
quickFeedback(function() {
|
||||||
window.plugins.socialsharing.shareVia($scope.shareGooglePlusVia, downloadUrl);
|
window.plugins.socialsharing.shareVia($scope.shareGooglePlusVia, content);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.shareEmail = function() {
|
$scope.shareEmail = function() {
|
||||||
quickFeedback(function() {
|
quickFeedback(function() {
|
||||||
window.plugins.socialsharing.shareViaEmail(downloadUrl);
|
window.plugins.socialsharing.shareViaEmail(content);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.shareWhatsapp = function() {
|
$scope.shareWhatsapp = function() {
|
||||||
quickFeedback(function() {
|
quickFeedback(function() {
|
||||||
window.plugins.socialsharing.shareViaWhatsApp(downloadUrl);
|
window.plugins.socialsharing.shareViaWhatsApp(content);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.shareMessage = function() {
|
$scope.shareMessage = function() {
|
||||||
quickFeedback(function() {
|
quickFeedback(function() {
|
||||||
window.plugins.socialsharing.shareViaSMS(downloadUrl);
|
window.plugins.socialsharing.shareViaSMS(content);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ angular.module('copayApp.services')
|
||||||
v = v.toString();
|
v = v.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
$log.debug('Writing:', k, v);
|
//$log.debug('Writing:', k, v);
|
||||||
fileWriter.write(v);
|
fileWriter.write(v);
|
||||||
|
|
||||||
}, cb);
|
}, cb);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue