Add warning before reloading #42
Labels
2
This issue is good for beginners and will have some slight challenges
enhancement
New feature or request
low priority
Lower priority to get done
Web Team
Since reloading the page deletes all currently created paths, there should be a warning in place to ensure this doesn't happen accidentally. To fix this, an alert should be added before the webpage unloads, warning the user they are about to delete all of their unsaved paths and asking them if they are sure they want to continue.
Docs:
https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload
The text was updated successfully, but these errors were encountered: