try to fix electron errors after start

This commit is contained in:
Jan Prochazka
2023-01-23 19:41:31 +01:00
parent 80e8b210be
commit b56f11156d
4 changed files with 47 additions and 107 deletions

View File

@@ -24,8 +24,8 @@ const configRootPath = path.join(app.getPath('userData'), 'config-root.json');
let initialConfig = {};
let apiLoaded = false;
let mainModule;
let getLogger;
let loadLogsContent;
// let getLogger;
// let loadLogsContent;
const isMac = () => os.platform() == 'darwin';
@@ -355,8 +355,8 @@ function createWindow() {
const main = api.getMainModule();
main.useAllControllers(null, electron);
mainModule = main;
getLogger = api.getLogger;
loadLogsContent = api.loadLogsContent;
// getLogger = api.getLogger;
// loadLogsContent = api.loadLogsContent;
apiLoaded = true;
}
mainModule.setElectronSender(mainWindow.webContents);