try catch on copy-to-clipboard
This commit is contained in:
parent
40d0e5b896
commit
c63bc06c76
1 changed files with 6 additions and 2 deletions
|
|
@ -74,8 +74,12 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
||||||
paymentSubscriptionObj.addr = $scope.addr
|
paymentSubscriptionObj.addr = $scope.addr
|
||||||
}
|
}
|
||||||
|
|
||||||
clipboardService.copyToClipboard($scope.protocolHandler + ":" + $scope.addr);
|
try {
|
||||||
|
clipboardService.copyToClipboard($scope.protocolHandler + ":" + $scope.addr);
|
||||||
|
} catch (error) {
|
||||||
|
$log.debug("Error copying to clipboard:");
|
||||||
|
$log.debug(error);
|
||||||
|
}
|
||||||
// create subscription
|
// create subscription
|
||||||
var msg = JSON.stringify(paymentSubscriptionObj);
|
var msg = JSON.stringify(paymentSubscriptionObj);
|
||||||
currentAddressSocket.onopen = function (event) {
|
currentAddressSocket.onopen = function (event) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue