forked from github/awesome-cordova-plugins
fix(file): fix file reader (#1537)
Pass reader object on call function. Fixes #1530
This commit is contained in:
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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user