From 3fa47f031844c4047510aea6cb54aed2e777fff8 Mon Sep 17 00:00:00 2001 From: Josh Willox <39120423+jcwillox@users.noreply.github.com> Date: Mon, 10 Aug 2020 19:35:46 +1000 Subject: [PATCH] Simplify config path --- src/electron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/electron.ts b/src/electron.ts index 24808b8..d6ee429 100644 --- a/src/electron.ts +++ b/src/electron.ts @@ -25,7 +25,7 @@ log.info('App starting...') const connectionManager = new ConnectionManager() 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() // Keep a global reference of the window object, if you don't, the window will