From d4464372d63f91bda588e9176b5b9960eec85682 Mon Sep 17 00:00:00 2001 From: dojyorin Date: Thu, 25 Apr 2024 13:13:31 +0900 Subject: [PATCH] fix method name --- src/pure/worker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" });