Skip to content

Commit 6e840e9

Browse files
committed
Fix ImageData creation with correct buffer type
1 parent 02b71b3 commit 6e840e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/desktop/src/utils/socket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export function createImageDataWS(
262262
}
263263

264264
const imageData = new ImageData(
265-
frameData.buffer as unknown as ImageDataArray,
265+
new Uint8ClampedArray(frameData.buffer),
266266
width,
267267
height,
268268
);

0 commit comments

Comments
 (0)