fixed minor streaming nits

This commit is contained in:
Danny Coates
2018-06-25 10:57:52 -07:00
parent c157e4d31c
commit a4cf46c0eb
5 changed files with 36 additions and 65 deletions

View File

@@ -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();