From 4a92bbbea755aa9e5bf8cfd160fb9da1cd3287cd Mon Sep 17 00:00:00 2001 From: Will Fairclough Date: Fri, 20 Jul 2018 16:17:23 -0400 Subject: [PATCH] require FileReader in FileWriter to fix 'write' exec not being called (#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. --- www/FileWriter.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/FileWriter.js b/www/FileWriter.js index c6de375ce..75ec9dcee 100644 --- a/www/FileWriter.js +++ b/www/FileWriter.js @@ -21,6 +21,7 @@ var exec = require('cordova/exec'); var FileError = require('./FileError'); +var FileReader = require('./FileReader'); var ProgressEvent = require('./ProgressEvent'); /**