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
commit f8f06ab556

View file

@ -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);
});
};