From 0edcdd3faa90396a0abb277ecd3503782c7df0f7 Mon Sep 17 00:00:00 2001 From: Salem Yaslem Date: Fri, 21 Jul 2023 20:26:38 +0300 Subject: [PATCH] remove the file after extract local blob url --- composables/worker/7zip-manager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composables/worker/7zip-manager.ts b/composables/worker/7zip-manager.ts index 392d3aa..c884787 100644 --- a/composables/worker/7zip-manager.ts +++ b/composables/worker/7zip-manager.ts @@ -159,7 +159,8 @@ export class SevenZipManager { const blob = new Blob([buffer as unknown as Uint8Array], { type: mime.getType(file.extension!) || "application/octet-stream" }); const blobUrl = URL.createObjectURL(blob); - // this.sevenZip.FS.unlink(file.path.substring(1)); + // remove the file after extract local blob url + this.sevenZip.FS.unlink(file.path.substring(1)); return blobUrl; }