open qr in new tab

This commit is contained in:
Tiago Vasconcelos
2026-02-25 16:28:21 +00:00
parent f93efbfb3a
commit 6b55a65513
+5 -2
View File
@@ -80,10 +80,13 @@ window.app.component('lnbits-qrcode', {
printWindow.close()
},
clickQrCode(event) {
event.preventDefault()
event.stopPropagation()
if (this.href === '') {
this.utils.copyText(this.value)
event.preventDefault()
event.stopPropagation()
return false
} else if (this.href) {
window.open(this.href, '_blank')
return false
}
},