3
0
mirror of https://github.com/danielsogl/awesome-cordova-plugins.git synced 2025-03-31 19:58:51 +08:00

fix(file): fix file reader ()

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

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