mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 20:42:32 +02:00
fix: also replace http:// urls in <lnbits-qrcode-lnurl> (#3346)
This commit is contained in:
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -24,8 +24,12 @@ window.app.component('lnbits-qrcode-lnurl', {
|
|||||||
const bech32 = NostrTools.nip19.encodeBytes('lnurl', bytes)
|
const bech32 = NostrTools.nip19.encodeBytes('lnurl', bytes)
|
||||||
this.lnurl = `lightning:${bech32.toUpperCase()}`
|
this.lnurl = `lightning:${bech32.toUpperCase()}`
|
||||||
} else if (this.tab == 'lud17') {
|
} else if (this.tab == 'lud17') {
|
||||||
|
if (this.url.startsWith('http://')) {
|
||||||
|
this.lnurl = this.url.replace('http://', this.prefix + '://')
|
||||||
|
} else {
|
||||||
this.lnurl = this.url.replace('https://', this.prefix + '://')
|
this.lnurl = this.url.replace('https://', this.prefix + '://')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.$emit('update:lnurl', this.lnurl)
|
this.$emit('update:lnurl', this.lnurl)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user