bip21: check for arg `r=` and set merchant.

This commit is contained in:
Christopher Jeffrey 2014-08-12 11:03:43 -04:00
parent 11ecfd1667
commit 363e27d493
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ BIP21.prototype.parse = function(uri) {
for (var arg in info.query) {
var val = info.query[arg];
if (arg === 'amount') val = Number(val);
if (arg === 'r') this.data.merchant = val;
this.data[arg] = val;
}
}