Skip to content
Snippets Groups Projects
Commit 79bef23d authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Minor UI fix

parent abc9295b
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,7 @@ window.addEventListener("beforeunload", (e) => {
const state = currentState();
if (lastSaved !== null && lastSaved !== state) {
const message = "Your changes have not been saved. Are you sure you want to leave?";
e.preventDefault();
e.returnValue = message;
return message;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment