1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-09 16:21:51 +00:00

Do not automatically open devtools

Remove the behavior of automatically opening developer tools when
launched with --dev command line switch. As --hide-devtools switch is
now unused, remove it as well.
This commit is contained in:
Даниїл Григор'єв 2025-06-19 04:54:20 +03:00
parent 9906397170
commit b106c35c03
No known key found for this signature in database
GPG Key ID: B890DF16341D8C1D
2 changed files with 0 additions and 5 deletions

View File

@ -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"),
};

View File

@ -47,10 +47,6 @@ function createWindow() {
window.on("ready-to-show", () => {
window.show();
if (switches.dev && !switches.hideDevtools) {
window.webContents.openDevTools();
}
});
ipc.install(window);