fix: Uint8Array to Blob cast for TS compatibility
This commit is contained in:
parent
63e45130ca
commit
60b23bc51d
@ -453,7 +453,7 @@ export class RemoteDisplayComponent implements OnInit, AfterViewInit, OnDestroy
|
||||
|
||||
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);
|
||||
this.img.onload = () => {
|
||||
if (this.canvas && this.ctx) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user