Commit 9235405
fix: correct isDev detection logic for packaged Electron app
Changed isDev logic from OR to AND to properly detect production mode.
Previously: isDev = NODE_ENV === 'development' || !app.isPackaged
Now: isDev = NODE_ENV === 'development' && !app.isPackaged
This fixes the white screen issue where packaged .exe files were trying
to load from http://localhost:5173 instead of dist/index.html.
Fixes: #white-screen-on-launch
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5da9f05 commit 9235405
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments