mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-08 15:10:54 +03:00
fixed minor streaming nits
This commit is contained in:
@@ -53,7 +53,7 @@ export default class FileReceiver extends Nanobus {
|
||||
|
||||
async streamToArrayBuffer(stream, streamSize) {
|
||||
const reader = stream.getReader();
|
||||
const result = new Int8Array(streamSize);
|
||||
const result = new Uint8Array(streamSize);
|
||||
let offset = 0;
|
||||
|
||||
let state = await reader.read();
|
||||
|
||||
Reference in New Issue
Block a user