Commit 6a6899f
fix: parse JSON theme value from localStorage in index.html (#233)
- localStorage stores theme as JSON string ("dark") via setStorageItem
- index.html was comparing with raw string causing theme mismatch
- Added JSON.parse with error handling for proper theme initialization
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent a06eed8 commit 6a6899f
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
| |||
0 commit comments