mirror of
https://github.com/bumi/lntip
synced 2026-02-20 07:47:50 +00:00
Show popup if webln fails
This commit is contained in:
@@ -74,7 +74,7 @@ LnTip.prototype.payWithWebln = function () {
|
|||||||
webln.enable().then((weblnResponse) => {
|
webln.enable().then((weblnResponse) => {
|
||||||
return webln.sendPayment({ paymentRequest: this.invoice.PaymentRequest })
|
return webln.sendPayment({ paymentRequest: this.invoice.PaymentRequest })
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
return this.requestPayment();
|
return this.showPaymentRequest();
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
return webln.sendPayment({ paymentRequest: this.invoice.PaymentRequest })
|
return webln.sendPayment({ paymentRequest: this.invoice.PaymentRequest })
|
||||||
|
|||||||
Reference in New Issue
Block a user