Skip to content

Commit f57c044

Browse files
committed
add back remove console on prod build
1 parent a79efff commit f57c044

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/utils/window.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Window {
2121
icon: path.join(process.env.VITE_PUBLIC, "icon.png"),
2222
webPreferences: {
2323
preload: path.join(__dirname, "preload.mjs"),
24-
// devTools: !app.isPackaged,
24+
devTools: !app.isPackaged,
2525
},
2626
autoHideMenuBar: true,
2727
minWidth: 1000,
@@ -36,9 +36,9 @@ class Window {
3636
VITE_DEV_SERVER_URL || path.join(RENDERER_DIST, "index.html");
3737
win.loadURL(loadURL);
3838

39-
// if (app.isPackaged) {
40-
// win.setMenu(null);
41-
// }
39+
if (app.isPackaged) {
40+
win.setMenu(null);
41+
}
4242

4343
if (!this.tray) this.createTray();
4444

0 commit comments

Comments
 (0)