Skip to content

Commit

Permalink
cleanup: ImageData is not marked as transferrable
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Jun 24, 2024
1 parent c7a8c34 commit a3a530f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prismarine-viewer/viewer/lib/workerProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const useWorkerProxy = <T extends { __workerProxy: Record<string, (...arg
})
}
return (...args: any[]) => {
const transfer = autoTransfer ? args.filter(arg => arg instanceof ArrayBuffer || arg instanceof MessagePort || arg instanceof ImageBitmap || arg instanceof OffscreenCanvas || arg instanceof ImageData) : []
const transfer = autoTransfer ? args.filter(arg => arg instanceof ArrayBuffer || arg instanceof MessagePort || arg instanceof ImageBitmap || arg instanceof OffscreenCanvas) : []
worker.postMessage({
type: prop,
args,
Expand Down

0 comments on commit a3a530f

Please sign in to comment.