Skip to content

Commit

Permalink
fix: hide devTools with production
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Jun 2, 2022
1 parent 603649d commit a9b61b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/electron-main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ function createWindow(): BrowserWindow {
? 'http://localhost:4200'
: `file://${path.join(__dirname, '../../../src/workbench/browser/dist/index.html')}`;
win.loadURL(file);
// if (['development'].includes(processEnv)) {
win.webContents.openDevTools({
mode: 'undocked',
});
// }
if (['development'].includes(processEnv)) {
win.webContents.openDevTools({
mode: 'undocked',
});
}
UnitWorkerModule.setup({
view: win,
});
Expand Down

0 comments on commit a9b61b7

Please sign in to comment.