MOBILE-2524 emulator: Fix writing files in chunks
parent
39ef7cf0e1
commit
b056329ee2
|
@ -747,7 +747,7 @@ export class FileMock extends File {
|
||||||
|
|
||||||
return new Promise<any>((resolve, reject): void => {
|
return new Promise<any>((resolve, reject): void => {
|
||||||
writer.onerror = reject;
|
writer.onerror = reject;
|
||||||
writer.onwrite = (): void => {
|
writer.onwriteend = (): void => {
|
||||||
if (writtenSize < data.size) {
|
if (writtenSize < data.size) {
|
||||||
writeNextChunk();
|
writeNextChunk();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue