Skip to content

Commit 8a3a018

Browse files
committed
fix: dont show dev tools in prod build
1 parent 5c181cc commit 8a3a018

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

public/electron.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ function createWindow() {
5353
);
5454

5555
// Open the DevTools.
56-
win.webContents.openDevTools({ mode: "detach" });
57-
// if (isDev) {
58-
// win.webContents.openDevTools({ mode: "detach" });
59-
// }
56+
if (isDev) {
57+
win.webContents.openDevTools({ mode: "detach" });
58+
}
6059
}
6160

6261
// This method will be called when Electron has finished

0 commit comments

Comments
 (0)