feature/IO-3725-RPS-Changes - Add AI context files, fix auto start dev tools in local
This commit is contained in:
@@ -8,7 +8,8 @@ const Sentry = require("@sentry/electron/main");
|
||||
|
||||
const isDev = !app.isPackaged;
|
||||
const enableDevTools = isDev || process.env.ELECTRON_ENABLE_DEVTOOLS === "1";
|
||||
const openDevToolsOnStart = enableDevTools && process.env.ELECTRON_OPEN_DEVTOOLS === "1";
|
||||
const openDevToolsOnStart =
|
||||
enableDevTools && (isDev ? process.env.ELECTRON_OPEN_DEVTOOLS !== "0" : process.env.ELECTRON_OPEN_DEVTOOLS === "1");
|
||||
const installReactDevTools = process.env.ELECTRON_INSTALL_REACT_DEVTOOLS === "1";
|
||||
|
||||
//const Nucleus = require("nucleus-nodejs");
|
||||
@@ -209,8 +210,8 @@ function createWindow() {
|
||||
app.quit();
|
||||
});
|
||||
|
||||
// Open DevTools only when explicitly requested. DevTools itself emits
|
||||
// Chromium protocol noise such as Autofill.* messages in Electron.
|
||||
// Auto-open DevTools in dev. DevTools itself can emit Chromium protocol
|
||||
// noise such as Autofill.* messages in Electron.
|
||||
if (openDevToolsOnStart) {
|
||||
mainWindow.webContents.openDevTools({
|
||||
// mode: "detach"
|
||||
|
||||
Reference in New Issue
Block a user