Merge pull request #1419 from albertgasset/MOBILE-2524

MOBILE-2524 emulator: Fix writing files in chunks
main
Juan Leyva 2018-07-24 12:03:39 +02:00 committed by GitHub
commit 72707833b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {