Revoke 1-time object URLs

This commit is contained in:
Cohee
2024-05-22 01:36:38 +03:00
parent 255cd1310d
commit 0371bf4e9f
6 changed files with 6 additions and 0 deletions

View File

@ -139,6 +139,7 @@ export function download(content, fileName, contentType) {
a.href = URL.createObjectURL(file);
a.download = fileName;
a.click();
URL.revokeObjectURL(a.href);
}
/**