fixes the scan of QR code with bitcoin url

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-17 18:36:12 -03:00 committed by Matias Alejo Garcia
commit 4d79768280

View file

@ -281,9 +281,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);
});
};