mirror of
https://github.com/bumi/lntip
synced 2026-02-15 05:27:49 +00:00
fix: implement webln spec
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user