use js function to encode

This commit is contained in:
Toshit Chawda 2024-07-26 22:24:25 -07:00
parent 11a0c09179
commit eebefbc070
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
7 changed files with 41 additions and 17 deletions

View file

@ -36,5 +36,6 @@ const tasks = {
};
function taskRewriteJs(js: ArrayBuffer, origin: string): string {
return rewriteJs(js, new URL(origin));
// idk how to get the codec from here
return rewriteJs(js, new URL(origin), () => {});
}