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

check wasClean in onclose event #1872

Merged
merged 1 commit into from
Feb 4, 2021
Merged

check wasClean in onclose event #1872

merged 1 commit into from
Feb 4, 2021

Conversation

mj2ks
Copy link
Contributor

@mj2ks mj2ks commented Feb 4, 2021

Chrome does not trigger an onclose if it was caused by a user page navigation/refresh. However, Firefox does trigger the onclose, this results in a confusing message. The wasClean check avoids this.

Chrome does not trigger an onclose if it was caused by a user page navigation/refresh. However, Firefox does trigger the onclose, this results in a confusing message. The wasClean check avoids this.
@mj2ks
Copy link
Contributor Author

mj2ks commented Feb 4, 2021

2021-02-04-220819_522x106_scrot
messages after page refresh

@yyx990803 yyx990803 merged commit 5d3107a into vitejs:main Feb 4, 2021
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.

2 participants