mirror of
https://github.com/bumi/lntip
synced 2025-06-15 17:28:14 +00:00
fix: implement webln spec
This commit is contained in:
parent
b9b2ce8d6b
commit
47efbfcc96
@ -120,15 +120,11 @@ class LnMe {
|
|||||||
}
|
}
|
||||||
|
|
||||||
payWithWebln() {
|
payWithWebln() {
|
||||||
if (!webln.isEnabled) {
|
webln.enable().then((weblnResponse) => {
|
||||||
webln.enable().then((weblnResponse) => {
|
|
||||||
return webln.sendPayment(this.invoice.payment_request);
|
|
||||||
}).catch((e) => {
|
|
||||||
return this.showPaymentRequest();
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
return webln.sendPayment(this.invoice.payment_request);
|
return webln.sendPayment(this.invoice.payment_request);
|
||||||
}
|
}).catch((e) => {
|
||||||
|
return this.showPaymentRequest();
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
populatePaymentRequest() {
|
populatePaymentRequest() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user