Skip to content

Commit 8c94fef

Browse files
committed
Get the mime-type for the file from the blob
Depends on the VM change that sets the mime-type
1 parent ec386be commit 8c94fef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/download-blob.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default (filename, blob) => {
1111
const url = window.URL.createObjectURL(blob);
1212
downloadLink.href = url;
1313
downloadLink.download = filename;
14+
downloadLink.type = blob.type;
1415
downloadLink.click();
1516
window.URL.revokeObjectURL(url);
1617
document.body.removeChild(downloadLink);

0 commit comments

Comments
 (0)