Skip to content
Snippets Groups Projects
Commit 8c94fef2 authored by Chris Garrity's avatar Chris Garrity
Browse files

Get the mime-type for the file from the blob

Depends on the VM change that sets the mime-type
parent ec386be5
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ export default (filename, blob) => {
const url = window.URL.createObjectURL(blob);
downloadLink.href = url;
downloadLink.download = filename;
downloadLink.type = blob.type;
downloadLink.click();
window.URL.revokeObjectURL(url);
document.body.removeChild(downloadLink);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment