Skip to content

Commit 208e0b1

Browse files
authored
remove inspect element window from production environment
1 parent e4cecf1 commit 208e0b1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

main.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ function createWindow() {
2525
electron: require(`${__dirname}/node_modules/electron`)
2626
});
2727
win.loadURL('http://localhost:4200');
28+
29+
// The following is optional and will open the DevTools:
30+
win.webContents.openDevTools();
2831
} else {
2932
// load the dist folder from Angular
3033
win.loadURL(
@@ -37,10 +40,6 @@ function createWindow() {
3740
);
3841
}
3942

40-
41-
// The following is optional and will open the DevTools:
42-
win.webContents.openDevTools()
43-
4443
win.on('closed', () => {
4544
win = null;
4645
});

0 commit comments

Comments
 (0)