This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
|
export const downloadBlob = (url: string, filename: string) => {
|
|
const link = document.createElement('a')
|
|
link.href = url
|
|
link.setAttribute('download', filename)
|
|
link.click()
|
|
window.URL.revokeObjectURL(url)
|
|
} |