mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
feat: begin building worker
This commit is contained in:
1
src/decrypt-worker/client.ts
Normal file
1
src/decrypt-worker/client.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export const workerClient = new Worker(new URL('./worker', import.meta.url), { type: 'module' });
|
||||||
3
src/decrypt-worker/worker.ts
Normal file
3
src/decrypt-worker/worker.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
onmessage = (e) => {
|
||||||
|
console.log(e.data);
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user