Skip to content

Commit 824c7a8

Browse files
committed
fix(decoder): use .buffer when sending arrays
fixes "DOMException: Failed to execute 'postMessage' on 'Worker': Value at index 0 does not have a transferable type"
1 parent 9c4a990 commit 824c7a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vue-components/src/utils/decoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class DecoderWorker {
121121

122122
pushChunk(timestamp, type, data) {
123123
const action = CHUNK;
124-
this.worker.postMessage({ action, timestamp, type, data }, [data]);
124+
this.worker.postMessage({ action, timestamp, type, data }, [data.buffer]);
125125
}
126126

127127
flush() {

0 commit comments

Comments
 (0)