aboutsummaryrefslogtreecommitdiffstats
path: root/app/src
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2023-09-28 10:40:22 -0500
committerMatt Strapp <matt@mattstrapp.net>2023-09-28 10:40:22 -0500
commit638b12bbd12897fb45e7c58fbfa128ee292902ee (patch)
tree29809973aa535950407685752bb6a22034e63f22 /app/src
parentdon't have the github link open in a new tab (diff)
downloadtrinkets-638b12bbd12897fb45e7c58fbfa128ee292902ee.tar
trinkets-638b12bbd12897fb45e7c58fbfa128ee292902ee.tar.gz
trinkets-638b12bbd12897fb45e7c58fbfa128ee292902ee.tar.bz2
trinkets-638b12bbd12897fb45e7c58fbfa128ee292902ee.tar.lz
trinkets-638b12bbd12897fb45e7c58fbfa128ee292902ee.tar.xz
trinkets-638b12bbd12897fb45e7c58fbfa128ee292902ee.tar.zst
trinkets-638b12bbd12897fb45e7c58fbfa128ee292902ee.zip
Importing the worker every time is less annoying than a FOUC
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r--app/src/lib/svelte/Navigation.svelte1
-rw-r--r--app/src/lib/ts/truncate.worker.ts2
2 files changed, 0 insertions, 3 deletions
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 @@
<AppRailAnchor
href="/truncate"
selected={$page.url.pathname === '/truncate'}
- data-sveltekit-reload
on:click={drawerClose}
>
<svelte:fragment slot="lead">
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<TruncateRequest>) => {
const truncated = buffer.slice(0, message.data.size);
postMessage({ file: truncated } as TruncateResponse);
};
-
-console.log('Worker successfully loaded!');