Fix: onbeforeunload handler would disable the save button
This commit is contained in:
		
							parent
							
								
									40a1781a53
								
							
						
					
					
						commit
						765231581c
					
				|  | @ -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); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user