Skip to content

Comments

joystick: sdl: Prevent "JavaScript error" popups from appearing on joystick connection#2197

Merged
rafaellehmkuhl merged 1 commit intobluerobotics:masterfrom
rafaellehmkuhl:fix-joystick-javascript-error
Oct 22, 2025
Merged

joystick: sdl: Prevent "JavaScript error" popups from appearing on joystick connection#2197
rafaellehmkuhl merged 1 commit intobluerobotics:masterfrom
rafaellehmkuhl:fix-joystick-javascript-error

Conversation

@rafaellehmkuhl
Copy link
Member

Those were happening because the joystick can take some time to be fully opened, and we are fetching its state right away.

A try/catch block with a warning was added to make sure this popup does not appear.

Fix #2195

…ystick connection

Those were happening because the joystick can take some time to be fully opened, and we are fetching its state right away.

A try/catch block with a warning was added to make sure this popup does not appear.
Copy link
Contributor

@ArturoManzoli ArturoManzoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't reproduce it here without an 8bitDo, even though I tried with different joysticks.
The logic seem correct and okay to merge anyway

@rafaellehmkuhl rafaellehmkuhl merged commit 585fd05 into bluerobotics:master Oct 22, 2025
12 checks passed
@rafaellehmkuhl rafaellehmkuhl deleted the fix-joystick-javascript-error branch October 22, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Electron crash when 8BitDo joystick connected and a DualSense is connected afterwards

2 participants