From 47efbfcc96b0b5fb508809fc7eeda4ea84366e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Tue, 21 May 2024 15:30:47 +0200 Subject: [PATCH] fix: implement webln spec --- files/assets/lnme.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/files/assets/lnme.js b/files/assets/lnme.js index 9b3ede3..b9fae58 100644 --- a/files/assets/lnme.js +++ b/files/assets/lnme.js @@ -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() {