Simplify config path

This commit is contained in:
Josh Willox
2020-08-10 19:35:46 +10:00
committed by GitHub
parent 9cdfa2de7b
commit 3fa47f0318

View File

@@ -25,7 +25,7 @@ log.info('App starting...')
const connectionManager = new ConnectionManager() const connectionManager = new ConnectionManager()
connectionManager.manageConnections() connectionManager.manageConnections()
const configStorage = new ConfigStorage(path.join(app.getPath('appData'), app.name, 'settings.json')) const configStorage = new ConfigStorage(path.join(app.getPath('userData'), 'settings.json'))
configStorage.init() configStorage.init()
// Keep a global reference of the window object, if you don't, the window will // Keep a global reference of the window object, if you don't, the window will