Skip to content

Commit

Permalink
fix commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Lete114 committed Feb 26, 2024
1 parent abca949 commit d370f3b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,20 @@
}
function onClikcDownload() {
console.log(downloadOptions)
const blob = new Blob([downloadOptions.arrayBuffer], {
type: 'application/octet-stream'
})
// const url = URL.createObjectURL(blob)
const url = URL.createObjectURL(blob)
// const downloadLink = document.createElement('a')
// downloadLink.href = url
// downloadLink.download = downloadOptions.fileName
// downloadLink.style.display = 'none'
// document.body.appendChild(downloadLink)
// downloadLink.click()
// document.body.removeChild(downloadLink)
const downloadLink = document.createElement('a')
downloadLink.href = url
downloadLink.download = downloadOptions.fileName
downloadLink.style.display = 'none'
document.body.appendChild(downloadLink)
downloadLink.click()
document.body.removeChild(downloadLink)
// URL.revokeObjectURL(url)
URL.revokeObjectURL(url)
isMinify = false
}
Expand Down

0 comments on commit d370f3b

Please sign in to comment.