Compare commits

...
Author SHA1 Message Date
Tiago Vasconcelos d7210cf406 chore: bundle 2026-05-07 10:21:40 +01:00
Tiago Vasconcelos 8e8e4d5c4e only use fallback to lnurlw 2026-05-07 10:21:03 +01:00
Tiago Vasconcelos c5db665b6d chore: bundle 2026-05-07 10:21:03 +01:00
Tiago Vasconcelos 602c439d43 fix: check for auth method in array 2026-05-07 10:21:03 +01:00
Tiago Vasconcelos 9303e68e8c fix: bech32 lnurl fallback 2026-05-07 10:21:03 +01:00
3 changed files with 6 additions and 3 deletions
File diff suppressed because one or more lines are too long
@@ -21,7 +21,10 @@ window.app.component('lnbits-qrcode-lnurl', {
if (this.tab == 'bech32') {
const bytes = new TextEncoder().encode(this.url)
const bech32 = NostrTools.nip19.encodeBytes('lnurl', bytes)
this.lnurl = `lightning:${bech32.toUpperCase()}`
this.lnurl =
this.prefix == 'lnurlw'
? `${new URL(this.url).origin}/?lightning=${bech32.toUpperCase()}`
: `lightning:${bech32.toUpperCase()}`
} else if (this.tab == 'lud17') {
if (this.url.startsWith('http://')) {
this.lnurl = this.url.replace('http://', this.prefix + '://')
+1 -1
View File
@@ -21,7 +21,7 @@ window.PageHome = {
return (
this.lnurl !== '' &&
this.g.settings.allowRegister &&
'user-id-only' in this.g.settings.authMethods
this.g.settings.authMethods.includes('user-id-only')
)
},
formatDescription() {