diff --git a/edit/edit.js b/edit/edit.js index 29ea1fff..130f7dd0 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -502,7 +502,7 @@ window.onbeforeunload = () => { rememberWindowSize(); } document.activeElement.blur(); - if (isCleanGlobal() && (!editor || !editor.isDirty())) { + if ((!editor && isCleanGlobal()) || (editor && !editor.isDirty())) { return; } updateLintReportIfEnabled(null, 0);