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