web/workers: use opfs instead of blobs for better memory management

spent almost an entire day figuring this out but it's so worth it
This commit is contained in:
wukko
2025-02-01 23:26:57 +06:00
parent 0a8323be54
commit 5464574a3e
12 changed files with 124 additions and 79 deletions

View File

@@ -65,7 +65,7 @@
<div class="file-status {info.state}">
{#if info.state === "done"}
<IconCheck /> {formatFileSize(info.resultFile?.size)}
<IconCheck /> {formatFileSize(info.resultFile?.file?.size)}
{/if}
{#if info.state === "running"}
@@ -95,7 +95,7 @@
{#if info.state === "done" && info.resultFile}
<button
class="action-button"
on:click={() => download(info.resultFile)}
on:click={() => download(info.resultFile.file)}
>
<IconDownload />
</button>