From 8c94fef24c14dfeda9a8abcf014195db22bd169d Mon Sep 17 00:00:00 2001 From: Chris Garrity Date: Mon, 12 Aug 2019 15:32:30 -0400 Subject: [PATCH] Get the mime-type for the file from the blob Depends on the VM change that sets the mime-type --- src/lib/download-blob.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/download-blob.js b/src/lib/download-blob.js index 13d53538c..4f04db350 100644 --- a/src/lib/download-blob.js +++ b/src/lib/download-blob.js @@ -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);