4.8.1 test-fix (#1561)
This commit is contained in:
8
projects/app/src/web/common/system/utils.ts
Normal file
8
projects/app/src/web/common/system/utils.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export const downloadFetch = async ({ url, filename }: { url: string; filename: string }) => {
|
||||
const a = document.createElement('a');
|
||||
a.href = url;
|
||||
a.download = filename;
|
||||
document.body.appendChild(a);
|
||||
a.click();
|
||||
document.body.removeChild(a);
|
||||
};
|
||||
Reference in New Issue
Block a user