diff --git a/lnbits/static/js/components/lnbits-qrcode.js b/lnbits/static/js/components/lnbits-qrcode.js index c5c3e3785..c311c0552 100644 --- a/lnbits/static/js/components/lnbits-qrcode.js +++ b/lnbits/static/js/components/lnbits-qrcode.js @@ -24,6 +24,10 @@ window.app.component('lnbits-qrcode', { type: String, default: '' }, + newTab: { + type: Boolean, + default: true + }, margin: { type: Number, default: 3 @@ -86,7 +90,7 @@ window.app.component('lnbits-qrcode', { this.utils.copyText(this.value) return false } else if (this.href) { - window.open(this.href, '_blank') + window.open(this.href, this.newTab ? '_blank' : '_self') return false } },