Skip to content

Commit 1b4f7e8

Browse files
kwonah0claude
andcommitted
fix: disable DevTools in production builds
- Remove automatic DevTools opening in production mode - Keep DevTools only for development mode (!isTest) - Add comment explaining DevTools behavior - Ensure clean production user experience DevTools will now only open when: - NODE_ENV === 'development' - NODE_ENV !== 'test' 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1c4ed61 commit 1b4f7e8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

electron/main.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ const createWindow = () => {
5252
}
5353
} else {
5454
mainWindow.loadFile(path.join(__dirname, '../dist/index.html'));
55-
// Only open DevTools in production if not testing
56-
if (!isTest) {
57-
mainWindow.webContents.openDevTools();
58-
}
55+
// DevTools only open in development mode for production builds
5956
}
6057

6158
mainWindow.once('ready-to-show', () => {

0 commit comments

Comments
 (0)