Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7210cf406 | ||
|
|
8e8e4d5c4e | ||
|
|
c5db665b6d | ||
|
|
602c439d43 | ||
|
|
9303e68e8c |
+1
-1
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 + '://')
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user