mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
* chore: migrate maa website * ci: change docs build test to website build test * fix: rename artifact name to dist * ci: add workflow to deploy website to azure
9 lines
230 B
TypeScript
9 lines
230 B
TypeScript
export const downloadBlob = async (blob: Blob, filename: string) => {
|
|
const url = URL.createObjectURL(blob)
|
|
const a = document.createElement('a')
|
|
a.href = url
|
|
a.download = filename
|
|
a.click()
|
|
URL.revokeObjectURL(url)
|
|
}
|