1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

[PM-1179] Ensure win is not destroyed in updateWindowState (#10737)

This commit is contained in:
Daniel García
2024-09-27 12:30:04 +02:00
committed by GitHub
parent 81e82a2535
commit 281b4db424

View File

@@ -323,7 +323,7 @@ export class WindowMain {
} }
private async updateWindowState(configKey: string, win: BrowserWindow) { private async updateWindowState(configKey: string, win: BrowserWindow) {
if (win == null) { if (win == null || win.isDestroyed()) {
return; return;
} }