paypro: remove uneccessary if clause in parseBitcoinURI.
This commit is contained in:
parent
d4d33ed2e7
commit
361b885d71
1 changed files with 1 additions and 5 deletions
|
|
@ -67,11 +67,7 @@ HDPath.parseBitcoinURI = function(uri) {
|
|||
var i = 0;
|
||||
for (; i < parts.length; i++) {
|
||||
part = parts[i].split('=');
|
||||
if (part[0] === '') {
|
||||
data[part[1]] = part[1];
|
||||
} else {
|
||||
data[part[0]] = decodeURIComponent(part[1]);
|
||||
}
|
||||
data[part[0]] = decodeURIComponent(part[1]);
|
||||
}
|
||||
ret.amount = parseFloat(data.amount);
|
||||
ret.message = data.message;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue