Skip to content

Commit ed2e334

Browse files
KevenWMarkhamclaude
andcommitted
chore: remove debug code from Electron main process
- Removed console.log statements from production build - Removed DevTools.openDevTools() from production build - Cleaned up indexPath variable to single-line file loading - Final production-ready build without debug instrumentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1f53a2e commit ed2e334

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

electron/main.cjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@ function createWindow() {
4747
mainWindow.loadURL('http://localhost:5173')
4848
mainWindow.webContents.openDevTools()
4949
} else {
50-
const indexPath = path.join(__dirname, '../dist/index.html')
51-
console.log('Loading index.html from:', indexPath)
52-
console.log('File exists:', fs.existsSync(indexPath))
53-
mainWindow.loadFile(indexPath)
54-
// Temporarily open DevTools in production to debug
55-
mainWindow.webContents.openDevTools()
50+
mainWindow.loadFile(path.join(__dirname, '../dist/index.html'))
5651
}
5752

5853
// Create application menu

0 commit comments

Comments
 (0)