magpie-ea / magpie-modules

the reusable front-end bits in the _magpie modules
MIT License
7 stars 1 forks source link

Show warning if the user tries to close the page without finishing #71

Open x-ji opened 4 years ago

x-ji commented 4 years ago

One issue with interactive experiments is that the user might leave before finishing the experiment. We could catch the event and show a warning. If the user insists on leaving, at least we can save the intermediate results before they close the page.

See: