Skip to content

Commit

Permalink
require FileReader in FileWriter to fix 'write' exec not being called (
Browse files Browse the repository at this point in the history
…#237)

FileWriter is missing the require('./FileReader') module causing the
native FileReader to be used instead of the FileReader proxy.

Oddly this does not happen everytime, but I could consistently
reproduce the issue when running subsequent `cordova run android`
commands on an Ionic app running in a 7.1.1 Android Emulator.
  • Loading branch information
wfairclough authored and macdonst committed Jul 20, 2018
1 parent cc3aedb commit 4a92bbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/FileWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

var exec = require('cordova/exec');
var FileError = require('./FileError');
var FileReader = require('./FileReader');
var ProgressEvent = require('./ProgressEvent');

/**
Expand Down

0 comments on commit 4a92bbb

Please sign in to comment.