Skip to content

Commit

Permalink
fix(file): fix file reader (#1537)
Browse files Browse the repository at this point in the history
Pass reader object on call function.
Fixes #1530
  • Loading branch information
troyanskiy authored and ihadeed committed May 12, 2017
1 parent 7f919d5 commit efae1be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/@ionic-native/plugins/file/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

1 comment on commit efae1be

@yackermann
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hahahaha 10/10

Please sign in to comment.