'use strict'; const downloadFile = async (url, fileName)=>{ const fileBlob = await fetch(url).then((res)=>res.blob()); const urlDownload = window.URL.createObjectURL(fileBlob); const link = document.createElement('a'); link.href = urlDownload; link.setAttribute('download', fileName); link.click(); }; exports.downloadFile = downloadFile; //# sourceMappingURL=downloadFile.js.map