From ce82439fd8ec1c5c1e265fa518f6fe028ee5fa1e Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Tue, 18 Apr 2023 17:02:49 +0100 Subject: [PATCH] format --- lnbits/core/static/js/wallet.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lnbits/core/static/js/wallet.js b/lnbits/core/static/js/wallet.js index 0f935686e..0a277b921 100644 --- a/lnbits/core/static/js/wallet.js +++ b/lnbits/core/static/js/wallet.js @@ -466,12 +466,12 @@ new Vue({ return } - // BIP-21 support - if(this.parse.data.request.toLowerCase().includes('lightning')){ + // BIP-21 support + if (this.parse.data.request.toLowerCase().includes('lightning')) { this.parse.data.request = this.parse.data.request.split('lightning=')[1] - + // fail safe to check there's nothing after the lightning= part - if(this.parse.data.request.includes('&')){ + if (this.parse.data.request.includes('&')) { this.parse.data.request = this.parse.data.request.split('&')[0] } }