diff --git a/util/fileSystem.js b/util/fileSystem.js index 2859791..344816e 100644 --- a/util/fileSystem.js +++ b/util/fileSystem.js @@ -2,7 +2,10 @@ exports.require = function() { var fs = require("fs"); if (process.versions['electron']) { try { - fs = require("original-fs") + originalFs = require("original-fs"); + if (Object.keys(originalFs).length > 0) { + fs = originalFs; + } } catch (e) {} } return fs