This commit is contained in:
2026-01-21 00:41:10 +01:00
parent 1b503f8db8
commit b04ad536f4

View File

@@ -216,6 +216,7 @@ export function initEditor() {
} }
async function hasUnsavedChanges() { async function hasUnsavedChanges() {
if (suppressDirty) return false;
if (!savedSnapshot) return false; if (!savedSnapshot) return false;
const currentSnapshot = await buildCurrentSnapshot(); const currentSnapshot = await buildCurrentSnapshot();
if (!currentSnapshot) return false; if (!currentSnapshot) return false;