diff --git a/lib/storage.js b/lib/storage.js index ee7a18d..c2d46d5 100644 --- a/lib/storage.js +++ b/lib/storage.js @@ -332,7 +332,7 @@ exports.has = function(key, options, callback) { dataPath: options.dataPath })), function(filename, done) { - fs.stat(filename, (error) => { + fs.stat(filename, function(error) { if (error) { if (error.code === 'ENOENT') { return done(null, false); diff --git a/lib/utils.js b/lib/utils.js index e55d49f..649dc6b 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -39,7 +39,7 @@ const app = electron.app || electron.remote.app; * @example * const defaultDataPath = utils.getDefaultDataPath() */ -exports.getDefaultDataPath = () => { +exports.getDefaultDataPath = function() { return path.join(app.getPath('userData'), 'storage'); };