Skip to content

Commit 8722573

Browse files
committed
chore: add console logging and DevTools to production build for debugging
1 parent a70dfdf commit 8722573

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

electron/main.cjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ function createWindow() {
4747
mainWindow.loadURL('http://localhost:5173')
4848
mainWindow.webContents.openDevTools()
4949
} else {
50-
mainWindow.loadFile(path.join(__dirname, '../dist/index.html'))
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()
5156
}
5257

5358
// Create application menu

0 commit comments

Comments
 (0)