Skip to content

Commit eed356b

Browse files
committed
fix: assert blob types
1 parent d52906a commit eed356b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/astro/src/default/components/DownloadButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function onClick() {
3434
const link = document.createElement('a');
3535
link.style.display = 'none';
3636
link.download = filename;
37-
link.href = URL.createObjectURL(new Blob([data], { type: 'application/zip' }));
37+
link.href = URL.createObjectURL(new Blob([data] as any, { type: 'application/zip' }));
3838

3939
document.body.appendChild(link);
4040
link.click();

0 commit comments

Comments
 (0)