Move electron-config init below our change to appData path

This commit is contained in:
Scott Nonnenberg 2017-05-22 09:54:06 -07:00
parent 63dcd43025
commit 0ad35cc0e6
No known key found for this signature in database
GPG Key ID: A4931C09644C654B
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,6 @@ const ipc = electron.ipcMain;
const Menu = electron.Menu;
const shell = electron.shell;
const ElectronConfig = require('electron-config');
const userConfig = new ElectronConfig();
console.log('setting AUMID');
app.setAppUserModelId('org.whispersystems.signal-desktop')
@ -71,6 +70,9 @@ if (config.has('storageProfile')) {
}
console.log('userData ' + app.getPath('userData'));
// this needs to be below our update to the appData path
const userConfig = new ElectronConfig();
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow