Merge branch 'master' into mrazator/delta-based-sync

This commit is contained in:
Marcel Mraz
2025-04-23 14:35:15 +02:00
140 changed files with 5343 additions and 2292 deletions
+7 -1
View File
@@ -310,7 +310,13 @@ class Collab extends PureComponent<CollabProps, CollabState> {
// the purpose is to run in immediately after user decides to stay
this.saveCollabRoomToFirebase(syncableElements);
preventUnload(event);
if (import.meta.env.VITE_APP_DISABLE_PREVENT_UNLOAD !== "true") {
preventUnload(event);
} else {
console.warn(
"preventing unload disabled (VITE_APP_DISABLE_PREVENT_UNLOAD)",
);
}
}
});