fix: implement webln spec

This commit is contained in:
René Aaron committed 2024-05-21 15:30:47 +02:00
1 parent b9b2ce8d6b
commit 47efbfcc96
1 file changed
+4 -8
+4 -8
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() {