Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary preventDefault #1889

Merged
merged 18 commits into from
Jun 8, 2023

Conversation

lodoyun
Copy link
Contributor

@lodoyun lodoyun commented Jun 7, 2023

Description

We had a preventDefault in the onBeforeUnload event. This, in newer versions of Chrome and in other browsers, will trigger a confirmation alert before leaving the page. While that 100% ensures the socket is marked as disconnected by the user, I don't think it's needed to keep the functionality.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

[] It includes documentation for these changes in /doc.

@lodoyun lodoyun merged commit 8878fa6 into lynckia:master Jun 8, 2023
@lodoyun lodoyun deleted the fix/removeOnPreventDefault branch June 8, 2023 07:53
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.

1 participant