Skip to content
#

marvel

Here are 491 public repositories matching this topic...

yassinedoghri
yassinedoghri commented May 26, 2018

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.").

Improve this page

Add a description, image, and links to the marvel topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the marvel topic, visit your repo's landing page and select "manage topics."

Learn more