AOSSIE-Org / AOSSIE-Org/Rein

[Bug]: JSON.parse without try/catch crashes trackpad component

Đang mở
#308 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.