Skip to content

Commit

Permalink
allow dev tools on electron prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
jabelone committed Aug 31, 2023
1 parent e62ec73 commit dd3e8d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Empty file.
8 changes: 4 additions & 4 deletions src-frontend/src-electron/electron-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ function createWindow() {
// if on DEV or Production with debug enabled
mainWindow.webContents.openDevTools();
} else {
// we're on production; no access to devtools pls
mainWindow.webContents.on('devtools-opened', () => {
mainWindow?.webContents.closeDevTools();
});
// TODO: comment out if you want to block access to dev tools in production
// mainWindow.webContents.on('devtools-opened', () => {
// mainWindow?.webContents.closeDevTools();
// });
}

mainWindow.on('closed', () => {
Expand Down

0 comments on commit dd3e8d4

Please sign in to comment.