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

Alert player when leaving the Play screen #19

Open
yassinedoghri opened this issue May 26, 2018 · 0 comments
Open

Alert player when leaving the Play screen #19

yassinedoghri opened this issue May 26, 2018 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@yassinedoghri
Copy link
Owner

Why? Description.
Player might accidentaly leave the Play page (eg. by refreshing or closing browser). All of his game progress would be lost.

How? Solution
Add a confirmation dialog to ask the player if he was intending to leave the game or not.

Additional context
Use window.confirm("Do you want to leave the game? Your progress will be lost.").

@yassinedoghri yassinedoghri added enhancement New feature or request good first issue Good for newcomers labels May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant