fixes the scan of QR code with bitcoin url
This commit is contained in:
parent
836af4ce6e
commit
4d79768280
1 changed files with 1 additions and 2 deletions
|
|
@ -281,9 +281,8 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
qrcode.callback = function(data) {
|
qrcode.callback = function(data) {
|
||||||
_scanStop();
|
_scanStop();
|
||||||
|
|
||||||
var str = (data.indexOf('bitcoin:') === 0) ? data.substring(8) : data;
|
|
||||||
$scope.$apply(function() {
|
$scope.$apply(function() {
|
||||||
$scope.address = str;
|
$scope.sendForm.address.$setViewValue(data);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue