open qr in new tab
This commit is contained in:
@@ -80,10 +80,13 @@ window.app.component('lnbits-qrcode', {
|
|||||||
printWindow.close()
|
printWindow.close()
|
||||||
},
|
},
|
||||||
clickQrCode(event) {
|
clickQrCode(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
event.stopPropagation()
|
||||||
if (this.href === '') {
|
if (this.href === '') {
|
||||||
this.utils.copyText(this.value)
|
this.utils.copyText(this.value)
|
||||||
event.preventDefault()
|
return false
|
||||||
event.stopPropagation()
|
} else if (this.href) {
|
||||||
|
window.open(this.href, '_blank')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user