const { app, ipcMain } = require('electron')
app.commandLine.appendSwitch("ignore-certificate-errors");
if (process.env.NODE_ENV === 'development') {
app.commandLine.appendSwitch('remote-debugging-port', '9222')
}
const isSecondInstance = app.makeSingleInstance((commandLine, workingDirectory) => {
global.p3xre.setVisible(true);
global.p3xre.mainWindow.webContents.reload();
})
if (isSecondInstance) {
return app.quit()
}
const utils = require('corifeus-utils')