mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-23 00:06:15 -04:00
feat(tool): added qr-code generator
This commit is contained in:
parent
27f3826d5f
commit
c16e537abf
6 changed files with 208 additions and 0 deletions
10
utils/file.ts
Normal file
10
utils/file.ts
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue