Skip to content

Commit

Permalink
fix: ignore save and just reset to avoid not saving when closed
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehue committed Mar 28, 2024
1 parent fde907b commit f3253d8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/utils/save.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ export namespace ProjectSaver {
addEventListener("beforeunload", (e) => {
const projectStore = useProjectStore();
if (projectStore.isEmpty) return;
save();
reset();
e.returnValue = "Changes you made may not be saved.";
return "Changes you made may not be saved.";
Expand Down

0 comments on commit f3253d8

Please sign in to comment.