Skip to content
Snippets Groups Projects
Unverified Commit e9e07052 authored by chrisgarrity's avatar chrisgarrity Committed by GitHub
Browse files

Merge pull request #5088 from chrisgarrity/export-custom-mimetype

Get the mime-type for the file from the blob
parents 3252a33a 8c94fef2
No related branches found
Tags 0.1.0-prerelease.20190808200910
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