firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.24k stars 199 forks source link

Warning on refresh #1973

Closed borissov closed 1 year ago

borissov commented 1 year ago

Feature

Sometimes I hit refresh by mistake and it would be quite helpful to have a message and prevent refresh the page or store the regex string in cookie.

working-name commented 1 year ago

Hi @borissov,

That's already a feature - can you please let us know which browser you're using and maybe if you have ticked that box that disallows further notifications from the site?

Maybe try another browser to double check.

If I change either the regex input or the text input and then try to refresh or close the tab the browser's own implementation of the unsaved changes dialog pops up (you trigger it via JS but it's really up to the browser on how to display it and what the message is).

Thanks!

firasdib commented 1 year ago

There is also an option for this in the settings on regex101, which by default, is enabled.