diff --git a/lib/utils/downloadBlob.js b/lib/utils/downloadBlob.js index a9e0638b..0c5f9ceb 100644 --- a/lib/utils/downloadBlob.js +++ b/lib/utils/downloadBlob.js @@ -28,13 +28,12 @@ const downloadBlob = ( } return blob => { - const url = window.URL.createObjectURL(blob); + const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = downloadName; - document.body.appendChild(a); a.click(); - a.remove(); + URL.revokeObjectURL(url); }; };