1
1
mirror of https://github.com/bumi/lntip synced 2025-01-25 04:43:27 +00:00

Merge pull request #60 from reneaaron/fix/isenabled

fix: implement webln spec
This commit is contained in:
bumi 2024-05-31 20:54:03 +03:00 committed by GitHub
commit 70028e4264
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,15 +120,11 @@ class LnMe {
}
payWithWebln() {
if (!webln.isEnabled) {
webln.enable().then((weblnResponse) => {
return webln.sendPayment(this.invoice.payment_request);
}).catch((e) => {
return this.showPaymentRequest();
})
} else {
webln.enable().then((weblnResponse) => {
return webln.sendPayment(this.invoice.payment_request);
}
}).catch((e) => {
return this.showPaymentRequest();
})
}
populatePaymentRequest() {