Browse Source

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

patch-2
Christopher Jeffrey 11 years ago
parent
commit
363e27d493
  1. 1
      lib/BIP21.js

1
lib/BIP21.js

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

Loading…
Cancel
Save