aboutsummaryrefslogtreecommitdiffstats
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/src/routes/truncate/+page.svelte6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/src/routes/truncate/+page.svelte b/app/src/routes/truncate/+page.svelte
index 104785d..e0dda30 100644
--- a/app/src/routes/truncate/+page.svelte
+++ b/app/src/routes/truncate/+page.svelte
@@ -4,7 +4,7 @@
import Icon from '@iconify/svelte';
import fileStorage from '@iconify/icons-carbon/file-storage';
import { FileDropzone, ProgressBar } from '@skeletonlabs/skeleton';
- import { onMount } from 'svelte';
+ import { onDestroy, onMount } from 'svelte';
let disableInput = false;
let files: FileList;
@@ -31,6 +31,10 @@
truncateTo = 1;
};
});
+
+ onDestroy(() => {
+ worker.terminate()
+ })
</script>
<svelte:head>