Right now this module will crash when being ran on a renderer process
that cannot access the remote module for determining a default data
path. After this commit, the module will gracefully require users to
call .setDataPath() if remote.app cannot be accessed.
Right now this module will crash when being ran on a renderer process that cannot access the
remote
module for determining a default data path. After this commit, the module will gracefully require users to call.setDataPath()
ifremote.app
cannot be accessed.See: https://github.com/electron-userland/electron-json-storage/issues/155 Signed-off-by: Juan Cruz Viotti jv@jviotti.com