UNPKG

qrcode-vue3

Version:

Add a style and an image to your QR code Vue3

9 lines (8 loc) 254 B
export default function downloadURI(uri: string, name: string): void { const link = document.createElement("a"); link.download = name; link.href = uri; document.body.appendChild(link); link.click(); document.body.removeChild(link); }