[Bug]: JSON.parse without try/catch crashes trackpad component
Đang mở
- Ngôn ngữ chính
- TypeScript
- Star
- 38
- Fork
- 78
- Merge trung bình
- 2 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 6
Mô tả
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
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.