[Bug]: JSON.parse without try/catch crashes trackpad component
Aperta
- Lingua principale
- TypeScript
- Stelle
- 38
- Fork
- 78
- Merge medio
- 2g 3h
- PR unite (30g)
- 6
Descrizione
The trackpad component reads 'rein_invert' from localStorage and parses it with JSON.parse without error handling. If localStorage contains malformed data, the component crashes.
**File:** src/routes/trackpad.tsx:36
**Fix:** Wrap JSON.parse in try/catch
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.