feat(tool): added qr-code generator

This commit is contained in:
Corentin Thomasset 2021-05-17 23:11:47 +02:00
parent 27f3826d5f
commit c16e537abf
No known key found for this signature in database
GPG key ID: DBD997E935996158
6 changed files with 208 additions and 0 deletions

10
utils/file.ts Normal file
View file

@ -0,0 +1,10 @@
const downloadBase64File = (dataUrl: string, name = 'file') => {
const a = document.createElement('a')
a.href = dataUrl
a.download = name
a.click()
}
export {
downloadBase64File
}