diff --git a/src/decrypt-worker/client.ts b/src/decrypt-worker/client.ts new file mode 100644 index 0000000..f966b7b --- /dev/null +++ b/src/decrypt-worker/client.ts @@ -0,0 +1 @@ +export const workerClient = new Worker(new URL('./worker', import.meta.url), { type: 'module' }); diff --git a/src/decrypt-worker/worker.ts b/src/decrypt-worker/worker.ts new file mode 100644 index 0000000..3304a7a --- /dev/null +++ b/src/decrypt-worker/worker.ts @@ -0,0 +1,3 @@ +onmessage = (e) => { + console.log(e.data); +};