Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]Add a "onbeforeunload" event to prevent the window from being closed by mistake. #165

Open
wc7086 opened this issue Nov 17, 2022 · 1 comment
Assignees

Comments

@wc7086
Copy link

wc7086 commented Nov 17, 2022

This feature should be necessary before implementing autosave by reading and writing local files.

https://www.w3schools.com/jsref/event_onbeforeunload.asp

@wc7086 wc7086 changed the title [FEATURE]Add a "Window.onbeforeunload" event to prevent the window from being closed by mistake. [FEATURE]Add a "onbeforeunload" event to prevent the window from being closed by mistake. Nov 17, 2022
@ondras ondras self-assigned this Nov 18, 2022
@ondras
Copy link
Owner

ondras commented Nov 18, 2022

Right, this sounds like a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants