From b056329ee2c9d50ec93ebed63f408d977e593c6b Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Mon, 23 Jul 2018 15:23:30 +0200 Subject: [PATCH] MOBILE-2524 emulator: Fix writing files in chunks --- src/core/emulator/providers/file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/emulator/providers/file.ts b/src/core/emulator/providers/file.ts index 27a64c645..c0d20b98b 100644 --- a/src/core/emulator/providers/file.ts +++ b/src/core/emulator/providers/file.ts @@ -747,7 +747,7 @@ export class FileMock extends File { return new Promise((resolve, reject): void => { writer.onerror = reject; - writer.onwrite = (): void => { + writer.onwriteend = (): void => { if (writtenSize < data.size) { writeNextChunk(); } else {