Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
share121 committed Feb 7, 2025
1 parent d4077b2 commit dde4a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ addEventListener("message", async ({ data }: MessageEvent<EventData>) => {
bufferOffset += bytesToCopy;
bytesProcessed += bytesToCopy;
if (bufferOffset === currentBuffer.length) {
postMessage(currentBuffer, [currentBuffer]);
postMessage(currentBuffer);
currentChunkIndex++;
currentBuffer = null;
}
Expand Down

0 comments on commit dde4a2a

Please sign in to comment.