From 2a0da7f1a43e88b801ee70a3462c3df829f4c927 Mon Sep 17 00:00:00 2001 From: Will Fairclough Date: Mon, 9 Jul 2018 15:36:46 -0400 Subject: [PATCH] require FileReader in FileWriter to fix 'write' exec not being called 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'); /**