diff --git a/electron/src/config.ts b/electron/src/config.ts index a131f8d4..aae058e9 100644 --- a/electron/src/config.ts +++ b/electron/src/config.ts @@ -18,6 +18,5 @@ export const pageUrl = app.isPackaged export const switches = { dev: app.commandLine.hasSwitch("dev"), - hideDevtools: app.commandLine.hasSwitch("hide-devtools"), safeMode: app.commandLine.hasSwitch("safe-mode"), }; diff --git a/electron/src/index.ts b/electron/src/index.ts index 6dbb3388..396d9cc9 100644 --- a/electron/src/index.ts +++ b/electron/src/index.ts @@ -47,10 +47,6 @@ function createWindow() { window.on("ready-to-show", () => { window.show(); - - if (switches.dev && !switches.hideDevtools) { - window.webContents.openDevTools(); - } }); ipc.install(window);