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

Minor UI fix

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