fix(file): fix file reader (#1537)

Pass reader object on call function.
Fixes #1530
This commit is contained in:
Raman Rasliuk 2017-05-12 10:18:38 +02:00 committed by Ibby Hadeed
parent 7f919d5c90
commit efae1be116

View File

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