my-mind
my-mind copied to clipboard
[FEATURE]Add a "onbeforeunload" event to prevent the window from being closed by mistake.
This feature should be necessary before implementing autosave by reading and writing local files.
https://www.w3schools.com/jsref/event_onbeforeunload.asp
Right, this sounds like a good idea.