You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
565 B
1 lines
565 B
function c(t,o,n,l){const a=[t],d=new Blob(a,{type:"application/octet-stream"}),i=window.URL.createObjectURL(d),e=document.createElement("a");e.style.display="none",e.href=i,e.setAttribute("download",o),typeof e.download>"u"&&e.setAttribute("target","_blank"),document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(i)}function s(t){var o=t["content-disposition"].split(";")[1].split("filename=")[1],n=t["content-disposition"].split("filename*=")[1];return n&&(o=decodeURIComponent(n.split("''")[1])),o}export{c as d,s as g};
|
|
|