From 638b12bbd12897fb45e7c58fbfa128ee292902ee Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Thu, 28 Sep 2023 10:40:22 -0500 Subject: Importing the worker every time is less annoying than a FOUC Signed-off-by: Matt Strapp --- app/src/lib/svelte/Navigation.svelte | 1 - app/src/lib/ts/truncate.worker.ts | 2 -- 2 files changed, 3 deletions(-) (limited to 'app/src') diff --git a/app/src/lib/svelte/Navigation.svelte b/app/src/lib/svelte/Navigation.svelte index 90fcfbd..724f821 100644 --- a/app/src/lib/svelte/Navigation.svelte +++ b/app/src/lib/svelte/Navigation.svelte @@ -21,7 +21,6 @@ diff --git a/app/src/lib/ts/truncate.worker.ts b/app/src/lib/ts/truncate.worker.ts index eaa65fe..9ddf63c 100644 --- a/app/src/lib/ts/truncate.worker.ts +++ b/app/src/lib/ts/truncate.worker.ts @@ -7,5 +7,3 @@ onmessage = async (message: MessageEvent) => { const truncated = buffer.slice(0, message.data.size); postMessage({ file: truncated } as TruncateResponse); }; - -console.log('Worker successfully loaded!'); -- cgit v1.2.3