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/ts/truncate.worker.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'app/src/lib/ts') 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