From efae1be1166542e73753114f043b437ba813dad5 Mon Sep 17 00:00:00 2001 From: Raman Rasliuk Date: Fri, 12 May 2017 10:18:38 +0200 Subject: [PATCH] fix(file): fix file reader (#1537) Pass reader object on call function. Fixes #1530 --- src/@ionic-native/plugins/file/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/file/index.ts b/src/@ionic-native/plugins/file/index.ts index 69e7cd8d1..5d763a1d1 100644 --- a/src/@ionic-native/plugins/file/index.ts +++ b/src/@ionic-native/plugins/file/index.ts @@ -885,7 +885,7 @@ export class File extends IonicNativePlugin { }; fileEntry.file(file => { - reader[`readAs${readAs}`].call(null, file); + reader[`readAs${readAs}`].call(reader, file); }, error => { reject(error); });