Handle space separated NWC info event (#855)
This commit is contained in:
parent
6e6c355a3f
commit
2d5b1f090d
|
@ -214,7 +214,7 @@ async function getInfoWithRelay (relay, walletPubkey) {
|
|||
], {
|
||||
onevent (event) {
|
||||
clearTimeout(timer)
|
||||
const supported = event.content.split(',')
|
||||
const supported = event.content.split(/[\s,]+/) // handle both spaces and commas
|
||||
supported.includes('pay_invoice') ? resolve() : reject(new Error('wallet does not support pay_invoice'))
|
||||
sub.close()
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue