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:
@@ -323,7 +323,7 @@ export class WindowMain {
|
||||
}
|
||||
|
||||
private async updateWindowState(configKey: string, win: BrowserWindow) {
|
||||
if (win == null) {
|
||||
if (win == null || win.isDestroyed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user