Skip to content

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

Description

@Muneerali199

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions