Can download ISO files
This commit is contained in:
10
virtweb_frontend/src/utils/FilesUtils.ts
Normal file
10
virtweb_frontend/src/utils/FilesUtils.ts
Normal file
@ -0,0 +1,10 @@
|
||||
export async function downloadBlob(blob: Blob, filename: string) {
|
||||
const url = URL.createObjectURL(blob);
|
||||
|
||||
const link = document.createElement("a");
|
||||
link.href = url;
|
||||
link.target = "_blank";
|
||||
link.rel = "noopener";
|
||||
link.download = filename;
|
||||
link.click();
|
||||
}
|
Reference in New Issue
Block a user