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:
parent
9906397170
commit
b106c35c03
@ -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"),
|
||||
};
|
||||
|
||||
@ -47,10 +47,6 @@ function createWindow() {
|
||||
|
||||
window.on("ready-to-show", () => {
|
||||
window.show();
|
||||
|
||||
if (switches.dev && !switches.hideDevtools) {
|
||||
window.webContents.openDevTools();
|
||||
}
|
||||
});
|
||||
|
||||
ipc.install(window);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user