Skip to content

Commit

Permalink
prohibit devtools in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Ziermann committed Mar 29, 2024
1 parent 389b7f5 commit e4513b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ app.on('ready', async () => {
mainWindow = new BrowserWindow({
show: false,
webPreferences: {
devTools: isDev,
preload: path.join(
app.getAppPath(),
(isDev ? '.' : '..') + '/src/electron/preload.cjs',
Expand Down

0 comments on commit e4513b5

Please sign in to comment.