fix fuck up on refactor (#2665)

Bug introduced in #2656
This commit is contained in:
Tiago Vasconcelos 2024-09-03 11:03:09 +01:00 committed by GitHub
parent ab3eb967b4
commit 937936ff33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,7 +219,6 @@ new Vue({
decodeRequest: function () {
this.parse.show = true
let req = this.parse.data.request.toLowerCase()
if (req.startsWith('lightning:')) {
this.parse.data.request = req.slice(10)
} else if (req.startsWith('lnurl:')) {
@ -227,7 +226,7 @@ new Vue({
} else if (req.includes('lightning=lnurl1')) {
this.parse.data.request = req.split('lightning=')[1].split('&')[0]
}
req = this.parse.data.request
if (req.startsWith('lnurl1') || req.match(/[\w.+-~_]+@[\w.+-~_]/)) {
LNbits.api
.request(