diff --git a/src/pure/worker.ts b/src/pure/worker.ts index dad7351..5447eaa 100644 --- a/src/pure/worker.ts +++ b/src/pure/worker.ts @@ -1,4 +1,4 @@ -import {base64DataURL} from "./base64.ts"; +import {base64EncodeDataURL} from "./base64.ts"; import {textEncode} from "./text.ts"; interface TaskMessage{ @@ -45,7 +45,7 @@ export function workerTask(task:TaskAction return (message, transfers)=>{ return new Promise((res, rej)=>{ - const worker = new Worker(base64DataURL(textEncode(script), "text/javascript"), { + const worker = new Worker(base64EncodeDataURL(textEncode(script), "text/javascript"), { type: "module" });