fix: Uint8Array to Blob cast for TS compatibility

This commit is contained in:
Butterfly Dev 2026-04-07 05:02:06 +00:00
parent 63e45130ca
commit 60b23bc51d

View File

@ -453,7 +453,7 @@ export class RemoteDisplayComponent implements OnInit, AfterViewInit, OnDestroy
if (!this.canvas || !this.ctx) return; if (!this.canvas || !this.ctx) return;
const blob = new Blob([payload], { type: 'image/jpeg' }); const blob = new Blob([payload.buffer as ArrayBuffer], { type: 'image/jpeg' });
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);
this.img.onload = () => { this.img.onload = () => {
if (this.canvas && this.ctx) { if (this.canvas && this.ctx) {