[Bug]: JSON.parse without try/catch crashes trackpad component
Offen
- Vorherrschende Sprache
- TypeScript
- Sterne
- 38
- Forks
- 78
- Ø Merge
- 2 T. 3 Std.
- Gemergte PRs (30 T.)
- 6
Beschreibung
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
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.