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 request] Implement onbeforeunload for script editors #2081

Open
P6g9YHK6 opened this issue Nov 26, 2024 · 0 comments
Open

[Feature request] Implement onbeforeunload for script editors #2081

P6g9YHK6 opened this issue Nov 26, 2024 · 0 comments

Comments

@P6g9YHK6
Copy link

Is your feature request related to a problem? Please describe.
when unsaved changes have been made to a script trmm prompt to save when leaving the script editor.
This does not trigger the builtin browser onbeforeunload api and could very much lead to a loss of work when the event is done on tab/window level rather than trmm

Describe the solution you'd like
when the condition to make the confirmation window appear when leaving are met trigger a beforeunload event
https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event

Describe alternatives you've considered
N/A

Additional context
image

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

No branches or pull requests

1 participant