mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
🆙 Init V3
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
export class WorkerBuilder extends Worker
|
||||
{
|
||||
constructor(worker)
|
||||
{
|
||||
const code = worker.toString();
|
||||
const blob = new Blob([ `(${ code })()` ]);
|
||||
|
||||
super(URL.createObjectURL(blob));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user