Skip to content

Commit

Permalink
fix method name
Browse files Browse the repository at this point in the history
  • Loading branch information
dojyorin committed Apr 25, 2024
1 parent e4a6974 commit d446437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pure/worker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {base64DataURL} from "./base64.ts";
import {base64EncodeDataURL} from "./base64.ts";
import {textEncode} from "./text.ts";

interface TaskMessage<T extends unknown>{
Expand Down Expand Up @@ -45,7 +45,7 @@ export function workerTask<T extends unknown, K extends unknown>(task:TaskAction

return (message, transfers)=>{
return new Promise<K>((res, rej)=>{
const worker = new Worker(base64DataURL(textEncode(script), "text/javascript"), {
const worker = new Worker(base64EncodeDataURL(textEncode(script), "text/javascript"), {
type: "module"
});

Expand Down

0 comments on commit d446437

Please sign in to comment.